public override void OnInspectorGUI() { EditorGUI.BeginChangeCheck(); OnInspectorGUIInternal(); if (EditorGUI.EndChangeCheck()) { meshCreator.SetMesh(); MeshModifyApplier meshModifyApplier = meshCreator.GetComponent <MeshModifyApplier>(); if (meshModifyApplier != null) { meshModifyApplier.UpdateOriginalMesh(); } } }
private void OnEnable() { meshModifier = (MeshModifier)target; meshModifyApplier = meshModifier.GetComponent <MeshModifyApplier>(); }