migration from new repo
This commit is contained in:
commit
423134a840
26930 changed files with 3458568 additions and 0 deletions
8
Assets/_/Features/Validators/Editor.meta
Normal file
8
Assets/_/Features/Validators/Editor.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2bae171eb78dd4bf28187fc8618a982d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
32
Assets/_/Features/Validators/Editor/PlayModePreventer.cs
Normal file
32
Assets/_/Features/Validators/Editor/PlayModePreventer.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Validators.Editor
|
||||
{
|
||||
[InitializeOnLoad]
|
||||
public static class PlayModePreventer
|
||||
{
|
||||
static PlayModePreventer()
|
||||
{
|
||||
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
||||
}
|
||||
|
||||
static void OnPlayModeStateChanged(PlayModeStateChange obj)
|
||||
{
|
||||
if (obj == PlayModeStateChange.ExitingEditMode)
|
||||
{
|
||||
string[] guids = AssetDatabase.FindAssets("t:Texture");
|
||||
foreach (string guid in guids)
|
||||
{
|
||||
string path = AssetDatabase.GUIDToAssetPath(guid);
|
||||
if (path.Contains(""))
|
||||
{
|
||||
//EditorApplication.isPlaying = false;
|
||||
//Debug.LogError("NON ! Tu as une erreur de nommage dans les textures ! ;)");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3f7e0c3f50c04d878316ea106647766d
|
||||
timeCreated: 1752648493
|
||||
18
Assets/_/Features/Validators/Editor/TextureValidator.cs
Normal file
18
Assets/_/Features/Validators/Editor/TextureValidator.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Validators.Editor
|
||||
{
|
||||
public class TextureValidator : AssetPostprocessor
|
||||
{
|
||||
private void OnPreprocessTexture()
|
||||
{
|
||||
if (assetPath.Contains("é")) // <- si une image contient un <é>
|
||||
{
|
||||
// Texture name contains spaces
|
||||
System.IO.File.Move("../../", assetPath);
|
||||
Debug.Log(assetPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d32c9285ac614649bd4a9bdbee96b048
|
||||
timeCreated: 1752648088
|
||||
Loading…
Add table
Add a link
Reference in a new issue