Пример #1
0
    public override void OnInspectorGUI()
    {
        serializedObject.Update();
        var coll = indexLayerName.Keys;

        layerProp.arraySize = coll.Count;

        // target 은 값을 가져오는 용도로만 사용할 것
        LayerSetting ls = target as LayerSetting;

        ls.UpdateLayerMask();

        EditorGUILayout.PropertyField(layerMaskProp);
        ShowList(layerProp);

        serializedObject.ApplyModifiedProperties();

        //Rect r = GUILayoutUtility.GetRect(0f, 16f);
        //bool showNext = EditorGUI.PropertyField(r, layerProp, true);
        //bool hasName = layerProp.NextVisible(showNext);

        //        if (layerListFold = EditorGUILayout.Foldout(layerListFold, "Layers"))
    }