- Home /
Question by
Bluestrike · Sep 19, 2011 at 07:39 PM ·
editorguilayoutcustom inspector
custom inspector material selection
I am creating a custom inspector, is it also possible to create a material selector like we get in the inspector with a normal script when we use:
var customMaterial : Material;
Comment
Best Answer
Answer by Molix · Sep 19, 2011 at 09:24 PM
Yes, just use ObjectField and specify Material as your type.
Your answer

Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Custom Inspector tooltips behaving inconsistently 0 Answers
Issues with EditorGUILayout, and GUILayout, after installing Unity4 0 Answers
Preview Window in Editor 2 Answers
EditorGUILayout - Use of unassigned local variable 2 Answers