- Home /
Question by
roger0 · May 13, 2019 at 10:52 PM ·
custom editorcustom inspector
Can you have a Vector3 variable with rotation controls similar to a Transform?
Its possible to create a Vector3 variable and set it to public so you can change its x,y,and z coordinates in the inspector. So I'm wondering if there's a way to make a vector3 variable also have rotation x,y,and z values, like a transform but with no gameobject in the scene.
How could this be done using a custom editor?
Comment
You can always create 3 public float varibales, and create the vector in the script...
Your answer

Follow this Question
Related Questions
Refreshing custom Inspector window while playing 1 Answer
Should I use Inspector or custom editor window? 1 Answer
SerializedObject.FindProperty returning null 2 Answers
Getting a target's gameobject in custom editor 1 Answer
Is there any way to hide the "Object picker" of an EditorGUILayout.ObjectField ? 2 Answers