0 votes

Image, we have a tool-class with param :

  • export var type # {Zombie, Ghost,...etc}
  • export var left_hand = null
  • export var right_hand = null
  • other export vars

Can I hide(unexport var left_hand , unexport var right_hand, ) when type is Ghost, means don`t show in "Inspector" panel ?

Sorry about my English.

Godot version 3.x(git source)
in Engine by (14 points)

I think, I found on https://www.reddit.com/r/godot/comments/d8ak0t/dynamic_export_vars/
But I don't know how set up enum export.

Based on a quick look at the source code, I don't think integer enumerations are supported here, only strings using PROPERTYHINTENUM.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.