Answers for "set dirty a property unity custom inspector"

C#
0

set dirty a property unity custom inspector

//Make a begin and a end property around it
using unityEditor;

public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) {
  EditorGUI.BeginProperty(position, label, property);
  EditorGUILayout.PropertyField(property);
  EditorGUI.EndProperty();
}
Posted by: Guest on August-16-2021

Code answers related to "set dirty a property unity custom inspector"

C# Answers by Framework

Browse Popular Code Answers by Language