TerrainPainter.tp_FoliageEditor.EditPrototypeEditor C# (CSharp) Метод

EditPrototypeEditor() приватный Метод

private EditPrototypeEditor ( ) : void
Результат void
        private void EditPrototypeEditor()
        {
            DefaultEditProtoType();
            EditorGUILayout.BeginHorizontal();
            FlexibleSpace(5);
            GUI.enabled = m_detailContainer.prototypeTexture != null || m_detailContainer.prototype != null;
            if (GUILayout.Button(new GUIContent("edit", "Apply changes to the current selected detail")))
            {
                for (int i = 0; i < component.TerrainData.detailPrototypes.Length; i++)
                {
                    if (component.Foliages.IsSelected(i))
                    {
                        ReplaceSplatMap(m_detailContainer, i);
                        break;
                    }
                }
                CancelPrototypeEditor();
            }
            GUI.enabled = true;
            if (GUILayout.Button(new GUIContent("cancel", "Cancel changes of the current selected detail"))) { CancelPrototypeEditor(); }
            EditorGUILayout.EndHorizontal();
        }
        private void RemovePrototypeEditor()