Custom Inspector in BD

Lexus-1

New member
Hey there, I was looking to customize the inspector and stumbled upon an example on the documentation page. I'm not very experienced with customizing inspectors, but I thought I'd give it a shot.
I'm aiming to achieve something similar to the "Can See Object" node. When I check the "Use Physics 2D" boolean in the inspector, the "Angle Offset 2D" field appears. How can I implement this? I'll dive into the script on this object, but as I mentioned, I'm not well versed in inspector customization.

Do you have any recommendations or script snippets for Behavior Designer, perhaps similar to those for the slider? Thanks a bunch.
 

Attachments

  • BoolExpand.gif
    BoolExpand.gif
    481.5 KB · Views: 1
Yes, you can use object drawers:


For Can See Object take a look at the CanSeeObjectDrawer file.
 
Top