コード例 #1
0
        private void OnEnable()
        {
            MyMeshes = (ActiveMeshes)target;

            ToggleMeshes = serializedObject.FindProperty("ToggleMeshes");

            list = new ReorderableList(serializedObject, ToggleMeshes, true, true, true, true);

            list.drawElementCallback = DrawElementCallback;
            list.drawHeaderCallback  = HeaderCallbackDelegate;
            list.onAddCallback       = OnAddCallBack;
        }
コード例 #2
0
        private void OnEnable()
        {
            m      = (ActiveMeshes)target;
            script = MonoScript.FromMonoBehaviour(target as MonoBehaviour);

            activeMeshesList = serializedObject.FindProperty("Meshes");
            showMeshesList   = serializedObject.FindProperty("showMeshesList");
            random           = serializedObject.FindProperty("random");

            list = new ReorderableList(serializedObject, activeMeshesList, true, true, true, true);
            {
                list.drawElementCallback = DrawElementCallback;
                list.drawHeaderCallback  = HeaderCallbackDelegate;
                list.onAddCallback       = OnAddCallBack;
            }
        }