playMaker

Author Topic: HideInInspector-Attribute for custom actions  (Read 2436 times)

Deek

  • Full Member
  • ***
  • Posts: 133
HideInInspector-Attribute for custom actions
« on: December 15, 2017, 10:53:09 AM »
It would be great if the [HideInInspector] attribute could also work on custom actions, since it doesn't seem to do anything on variables and it would be helpful when creating custom inspectors to hide certain fields (as I'm also not friends with automated properties).
If you'd do create an extra attribute for that, might as well call it "HideInAction" to differentiate.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: HideInInspector-Attribute for custom actions
« Reply #1 on: December 17, 2017, 08:11:16 AM »
Hi,
You can use standard variables instead of fsm variables and set private.

Deek

  • Full Member
  • ***
  • Posts: 133
Re: HideInInspector-Attribute for custom actions
« Reply #2 on: December 17, 2017, 02:50:54 PM »
I created this request just before learning about
Code: [Select]
EditField("<variablename>"); with which you can draw single fields in a custom inspector. So there's no real need for that HideInAction attribute.

By using standard variables you would lose the ability to set the fields to none if you want the variable to be an FsmVariable, and I don't think you can access private variables from the inspector (at least I tried it back then, though with FsmVariables), but thanks anyway.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: HideInInspector-Attribute for custom actions
« Reply #3 on: December 18, 2017, 04:49:47 AM »
Hi.
Sorry i thought you don't want them to show up at all.