- Home /
Question by
ItsaMeTuni · Oct 30, 2017 at 10:50 PM ·
c#networkingcustom editor
Custom editor for MonoBehaviour not working on NetworkBehaviour.
This doesn't work for a component inherited from NetworkBehaviour. But as far as I know it should work because NetworkBehaviour inherits MonoBehaviour. Note that editorForChildClasses param is true and property isFallback is also true.
[CustomEditor(typeof(MonoBehaviour), true, isFallback = true)]
public class EnhancedMonoBehaviourEditor : Editor
{
public override void OnInspectorGUI()
{
serializedObject.Update();
FieldGenerator.Show(target);
serializedObject.ApplyModifiedProperties();
}
}
Thanks for your help!
Comment
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
Why my networked client Player is not dying ?? 0 Answers
Commands and ClientRPC are not running when called 0 Answers
Understanding Unet attributes 2 Answers