- Home /
Drawing InputAction Property Drawer in a custom editor?
I am very lost. What I want to do is to draw the property drawer of the InputAction class:
In a custom editor for a class.
I believe that I would need to use EditorGUILayout.PropertyField() in order to achieve this. However, I would need to convert an instance of the class InputAction into a SerializedProperty in order to pass it through the function. I do not know how to convert this.
I am not too sure if I am on the right track; Property Drawers confuse me, and scanning through the input's system code confuses me even more.
So if I were to boil the question down to one, generalizable question, it would be: "How do I draw a field with a custom property drawer into my custom inspector?"
Thank you! I appreciate the help.
Answer by HAIRGROW · Jun 30, 2021 at 06:20 PM
Hey there, I was curious if you ever solved this problem?
Your answer
Follow this Question
Related Questions
Draw default property types in custom PropertyDrawer 2 Answers
Applying a PropertyDrawer to elements of a List<> 1 Answer
Intractable CustomPropertyDrawer 0 Answers
SerializedObject.FindProperty returning null 2 Answers
SerializedProperty to Texture2D 2 Answers