mirror of
https://github.com/maxartz15/MA_TextureAtlasser.git
synced 2025-06-23 19:16:04 +02:00
#if UNITY_EDITOR
Added '#if UNITY_EDITOR' to all the scripts that should only run/be used in the editor.
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
//Maxartz15
|
||||
//Version 1.0
|
||||
|
||||
#if UNITY_EDITOR
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
@ -58,4 +59,5 @@ namespace MA_Editor.Grid
|
||||
Handles.EndGUI();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
@ -1,6 +1,7 @@
|
||||
//Maxartz15
|
||||
//Version 1.0
|
||||
|
||||
#if UNITY_EDITOR
|
||||
using UnityEngine;
|
||||
using MA_Editor;
|
||||
|
||||
@ -67,4 +68,5 @@ namespace MA_Editor.RectUtils
|
||||
return multipliedRect;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
@ -1,6 +1,7 @@
|
||||
//Maxartz15
|
||||
//Version 1.0
|
||||
|
||||
#if UNITY_EDITOR
|
||||
using UnityEngine;
|
||||
using MA_Editor;
|
||||
using MA_Editor.RectUtils;
|
||||
@ -36,4 +37,5 @@ namespace MA_Editor.GUILayoutZoom
|
||||
GUI.BeginGroup(new Rect(0.0f, EditorWindowTabHeight, Screen.width, Screen.height));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
@ -1,6 +1,7 @@
|
||||
//Maxartz15
|
||||
//Version 1.0
|
||||
|
||||
#if UNITY_EDITOR
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
@ -184,4 +185,5 @@ namespace MA_Mesh
|
||||
public string name;
|
||||
public string textureName;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
@ -3,6 +3,7 @@
|
||||
//Part of MA_TextureUtils
|
||||
//https://github.com/maxartz15/MA_TextureUtils
|
||||
|
||||
#if UNITY_EDITOR
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using System.IO;
|
||||
@ -200,4 +201,5 @@ namespace MA_Texture
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user