Skip to content

Commit

Permalink
Added code
Browse files Browse the repository at this point in the history
  • Loading branch information
Xriuk committed Dec 27, 2020
1 parent 2165d56 commit 56fa0fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/StoneShelter/Editor/GUIDEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ override public void OnInspectorGUI(){
GUIStyle style = EditorStyles.label;
EditorGUILayout.PropertyField(serializedObject.FindProperty("m_guidPrefab"), new GUIContent("", serializedObject.FindProperty("m_guidPrefab").tooltip), GUILayout.Width(style.fontSize + EditorGUIUtility.standardVerticalSpacing));
bool curr = serializedObject.FindProperty("m_guidPrefab").boolValue;
if(curr != prev){
if(!prev && curr){
Debug.unityLogger.logEnabled = false;
((GUID)serializedObject.targetObject).ResetGUID();
Expand Down

0 comments on commit 56fa0fe

Please sign in to comment.