Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [CanEditMultipleObjects, CustomEditor(typeof(MyCustomClass), true)]
- public class MyCustomEditor : BaseMonoBehaviourEditor
- {
- protected override void DrawProperty(Rect position, SerializedProperty property, GUIContent label)
- {
- if (property.name == "m_CanMove")
- {
- // insert custom editor code for this property
- }
- else
- {
- base.DrawProperty(property, label);
- }
- }
- }
Add Comment
Please, Sign In to add comment