Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using UnityEngine;
using UnityEditor;
using System.Collections;
[CustomEditor (typeof (FollowSortingMap))]
public class FollowSortingMapEditor : Editor
{
public override void OnInspectorGUI ()
{
FollowSortingMap _target = (FollowSortingMap) target;
_target.followSortingMap = EditorGUILayout.Toggle ("Follow Sorting map?", _target.followSortingMap);
if (_target.followSortingMap)
{
_target.offsetOriginal = EditorGUILayout.Toggle ("Offset original Order?", _target.offsetOriginal);
_target.affectChildren = EditorGUILayout.Toggle ("Also affect children?", _target.affectChildren);
}
if (GUI.changed)
{
EditorUtility.SetDirty (_target);
}
}
}
|
Revision |
Author |
Commited |
Message |
83
|
FMMortaroli
|
Tue 13 May, 2014 11:32:51 +0000 |
|