#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:
max
2019-05-04 13:29:02 +02:00
parent 7990f987dc
commit 78e4fb0ad1
19 changed files with 63 additions and 25 deletions

View File

@ -1,3 +1,4 @@
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@ -75,4 +76,5 @@ namespace MA_TextureAtlasserPro
}
}
}
}
}
#endif

View File

@ -1,3 +1,4 @@
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@ -131,4 +132,5 @@ namespace MA_TextureAtlasserPro
base.ProcessEvents(e, editorViewRect);
}
}
}
}
#endif

View File

@ -1,3 +1,4 @@
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@ -78,4 +79,5 @@ namespace MA_TextureAtlasserPro
base.ProcessEvents(e, editorViewRect);
}
}
}
}
#endif

View File

@ -1,4 +1,5 @@
using System.Collections;
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
@ -52,4 +53,5 @@ namespace MA_TextureAtlasserPro
}
}
}
}
}
#endif

View File

@ -1,4 +1,5 @@
using System.Collections;
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using MA_Editor;
@ -147,4 +148,5 @@ namespace MA_TextureAtlasserPro
zoomCoordsOrigin = new Vector2(-(curWindow.position.width / 2) + (curWindow.position.width / 3), -(curWindow.position.height / 2) + (curWindow.position.height / 3));
}
}
}
}
#endif