How to register property Array(Texture) in gdnative?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By yanChen

in gdscirpt:

export(Array, Texture) var textures setget _set_tex, _get_tex

in gdnative:

How to translate gdscript to gdnative? How to have the same implements in gdnative?

I tried:

register_property<NewSprite, Array>("texs", &NewSprite::set_texs, &NewSprite::get_texs, Array(), GODOT_METHOD_RPC_MODE_DISABLED, GODOT_PROPERTY_USAGE_DEFAULT, GODOT_PROPERTY_HINT_RESOURCE_TYPE, "Texture");

The Inspector shows that the array[i] type can be any variant. But I just need Texture type. Is there any way to set this?