So I've run into a bit of a snag when trying to draw a task field from a task with a custom drawer.
Background: we have type X which the base type we use for all of our boss attacks, this has a custom drawer that handles some conditional inspector drawing logic. I've added a field "OtherTask", also of type X, and am attempting to draw the field via
Predictably, this causes a stack overflow.
I suspect there's a good chance
Is there an accessible method for drawing a task reference from a custom drawer? I'm sure there's something simple I've missed
Background: we have type X which the base type we use for all of our boss attacks, this has a custom drawer that handles some conditional inspector drawing logic. I've added a field "OtherTask", also of type X, and am attempting to draw the field via
FieldInspector.DrawField
, which calls the custom drawer for type X. Predictably, this causes a stack overflow.
I suspect there's a good chance
FieldInspector.DrawField
is the wrong thing to use here, but I'm not aware of any public methods that do what I need. Even if I don't want to draw the same type or a task type that doesn't have a custom drawer, FieldInspector.DrawField
doesn't seem to handle task references.Is there an accessible method for drawing a task reference from a custom drawer? I'm sure there's something simple I've missed