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

            materialList = serializedObject.FindProperty("materialList");

            list = new ReorderableList(serializedObject, materialList, true, true, true, true);
            list.drawElementCallback = DrawElementCallback;
            list.drawHeaderCallback  = HeaderCallbackDelegate;
            list.onAddCallback       = OnAddCallBack;
        }
コード例 #2
0
        private void OnEnable()
        {
            M      = ((MaterialChanger)target);
            script = MonoScript.FromMonoBehaviour(target as MonoBehaviour);

            materialList   = serializedObject.FindProperty("materialList");
            showMeshesList = serializedObject.FindProperty("showMeshesList");
            random         = serializedObject.FindProperty("random");

            list = new ReorderableList(serializedObject, materialList, true, true, true, true);
            list.drawElementCallback = DrawElementCallback;
            list.drawHeaderCallback  = HeaderCallbackDelegate;
            list.onAddCallback       = OnAddCallBack;
        }
コード例 #3
0
        private void OnEnable()
        {
            M = ((MaterialChanger)target);

            materialList   = serializedObject.FindProperty("materialList");
            showMeshesList = serializedObject.FindProperty("showMeshesList");
            changeHidden   = serializedObject.FindProperty("changeHidden");
            random         = serializedObject.FindProperty("random");

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