Guest User

Untitled

a guest
Feb 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. [CanEditMultipleObjects, CustomEditor(typeof(MyCustomClass), true)]
  2. public class MyCustomEditor : BaseMonoBehaviourEditor
  3. {
  4. protected override void DrawProperty(Rect position, SerializedProperty property, GUIContent label)
  5. {
  6. if (property.name == "m_CanMove")
  7. {
  8. // insert custom editor code for this property
  9. }
  10. else
  11. {
  12. base.DrawProperty(property, label);
  13. }
  14. }
  15. }
Add Comment
Please, Sign In to add comment