#How can i custom gui on right click at
1 messages · Page 1 of 1 (latest)
oh that is EditorApplication.contextualPropertyMenu
nice
hi now i try to save value inspector at runtime
how to do that
when i edit value at runtime and stop back to editor the value is will reset
so i want edit value at runtime and when i back to editor the value must save
my code i ask in ChatGPT haha is not work
Just as the example does in the docs for the context menu:
// Make the change
propertyCopy.vector3Value = Random.insideUnitSphere * 5;
// Apply the change
propertyCopy.serializedObject.ApplyModifiedProperties();