public override void OnInspectorGUI() { serializedObject.UpdateIfRequiredOrScript(); Editor.DrawPropertiesExcluding(serializedObject, "m_Script"); // Apply changes to the serializedProperty if (GUI.changed) { serializedObject.ApplyModifiedProperties(); constraints.PushDataToSolver(); } }
public override void OnInspectorGUI() { serializedObject.UpdateIfDirtyOrScript(); Editor.DrawPropertiesExcluding(serializedObject, "m_Script"); // Apply changes to the serializedProperty if (GUI.changed) { serializedObject.ApplyModifiedProperties(); constraints.PushDataToSolver(new ObiSolverData(ObiSolverData.DistanceConstraintsData.ALL)); } }