migration from new repo

This commit is contained in:
mrtoine 2025-09-06 23:56:47 +02:00
commit 423134a840
26930 changed files with 3458568 additions and 0 deletions

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2bae171eb78dd4bf28187fc8618a982d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View 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 ! ;)");
}
}
}
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 3f7e0c3f50c04d878316ea106647766d
timeCreated: 1752648493

View 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);
}
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d32c9285ac614649bd4a9bdbee96b048
timeCreated: 1752648088