protected bool DisplayClothingMesh(MORPH3D.COSTUMING.CIclothing mesh) { bool result; EditorGUILayout.BeginHorizontal(); string labelStr = String.IsNullOrEmpty(mesh.name) ? mesh.ID : mesh.name; EditorGUILayout.LabelField(labelStr, GUILayout.Width(150)); if (mesh.isVisible) { GUILayout.Space(60); } result = GUILayout.Button((mesh.isVisible) ? "Disable" : "Enable", GUILayout.Width(60)); if (!mesh.isVisible) { GUILayout.Space(60); } // if (mesh.isVisible) // lockItem = EditorGUILayout.Toggle (mesh.isLocked); // else // lockItem = mesh.isLocked; EditorGUILayout.EndHorizontal(); return(result); }
protected bool DisplayClothingMesh(MORPH3D.COSTUMING.CIclothing mesh, out bool lockItem) { bool result; EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField(mesh.displayName, GUILayout.Width(150)); if (mesh.isVisible) { GUILayout.Space(60); } result = GUILayout.Button((mesh.isVisible) ? "Disable" : "Enable", GUILayout.Width(60)); if (!mesh.isVisible) { GUILayout.Space(60); } if (mesh.isVisible) { lockItem = EditorGUILayout.Toggle(mesh.isLocked); } else { lockItem = mesh.isLocked; } EditorGUILayout.EndHorizontal(); return(result); }