internal void OnDrawSoftFolder(SoftEffects myScript) { if (myScript.HaveEditFolder) { EditorGUILayout.Space(); EditorGUILayout.BeginVertical("box"); EditorGUI.indentLevel++; EditorGUILayout.BeginHorizontal(); string[] folder = myScript.EditObjectFolder.Split('/'); EditorGUILayout.LabelField("Working Folder : " + folder[folder.Length - 1]); if (GUILayout.Button("Ping")) { myScript.PingEditFolder(); } EditorGUILayout.EndHorizontal(); EditorGUILayout.Space(); if (myScript.HaveSourceObject) { EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField("Force Rebuild : " + myScript.SourceObjectName); if (GUILayout.Button("Rebuild")) { myScript.ApplySoftEffect(false); return; } EditorGUILayout.EndHorizontal(); } EditorGUI.indentLevel--; EditorGUILayout.EndVertical(); EditorGUILayout.Space(); } }
internal void OnDrawCreate(SoftEffects myScript) { EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField("For using effects create please edit object."); if (GUILayout.Button("Create")) { myScript.ApplySoftEffect(true); } EditorGUILayout.EndHorizontal(); }