Godot: export(Object) doesn't let me assign any object to the variable in the inspector

Created on 30 Oct 2016  路  6Comments  路  Source: godotengine/godot

Windows 10 - Godot 2.1 and 2.2

When used, the variable is showed in the inspector, but upon clicking it there are no options to assign or clear the value. It works if I use NodePath type instead of Object.

bug gdscript

All 6 comments

export(Object) should not even work. Only builtin and resource types can be used with export.

so, the bug tag means, godot script editor prevents to write export(Object) -shows error or somethig-, right?

so, the bug tag means, godot script editor prevents to write export(Object) -shows error or somethig-, right?

It _should_ show an error in this case, like it shows when you try export(Node2D).

Why can't objects such as Node2D or Texture be exported? It'd make it really easy to assign them from the game editor

Instead of exporting a Texture, export a material.

@JarLowrey You can (and should) export a NodePath instead of Node, and Texture should work fine (since it is a Resource).

Was this page helpful?
0 / 5 - 0 ratings