Cannot add render_script to a game object (SOLVED)

Hello,

I’m trying and add a defold_script file to a game object.

So i’m creating a collection, put a game object in it.

In this game object, i add a gui component.

Then i try and add previously created render_script file.
(right click on the go_gui game object, and then add component file)
The only file i can add is the gui component, gui_script is invisible.

I tried and created a normal script file, i can see it in the box. But no way to add gui_script.

Thank you for reading :slight_smile:

EDIT : i think it will be easier to see with the sample project :wink:
https://share.riseup.net/#PGSosW1_NepAuetIvYDcBw

You want scripts not render_scripts for GO components.

For GUI scripts you want to define them here

1 Like

Thank you Pkeod !

I swear i had read the doc! But sometimes, i don’t see all gui components of Defold editor (must be a peculiar sort of blindness :blush: )

2 Likes