Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public override void OnInspectorGUI() { bool changed = DrawDefaultInspector(); autoUpdate = EditorGUILayout.Toggle("Auto Update", autoUpdate); if ((changed && autoUpdate) || GUILayout.Button("Generate")) { CustomTerrain terrain = (CustomTerrain)target; terrain.GenerateAndApplyMesh(); } }