Adding a public variable in "Can See Object"

matmalm

Member
Hi,
I added a public variable to the script "Can See Object", however it doesn't show up in the inspector, instead it shows up in the inspector of "Stacked Conditional", and then adding "Can See Object" Conditional. (this got me thinking for a while why it wasn't showing up in the first place).
The variable is very simple, just to see from the eyes of the NPC, instead of the base:
[Tooltip("Transform representing the eyes of the NPC.")]
public Transform eyesTransformNPC;
How can I do it in order to show up in "Can See Object" instead of the "Stacked Conditional", or just in both?
 
Can See Object contains an object drawer which draws a custom inspector. This object drawer overrides the standard drawing so to add a variable you will also need to modify the object drawer.
 
Top