I want to instatiate the inspector of a specific type like int and String into my own inspector plugin. It would be incredibly useful to use the premade inspector types as they are just really well made.

The image is not related, I just wanted to put some visual here.

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 2 years ago (3 children)

@Smorty Is the @export parameter useful for you?

  • source
  • hideshow 3 child comments
  • [–] [S] 1 point 2 years ago (2 children)

    I use @export extensively in my projects but I have never heard it being refered to as a parameter. What do you mean by this exactly?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago (1 child)

    I think what they're trying to say is that you can add a type hint to your exported properties. These type hints affect how the property presents in the inspector. https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_exports.html. For example, @export var my_int: int shows up as an int in the inspector.

  • source
  • parent
  • hideshow 1 child comment