#get referecne from unity in Script

1 messages · Page 1 of 1 (latest)

fair ore
#

i want to get this gun reference in my script but i geting undefined how can i get this?

velvet bearBOT
# fair ore i want to get this gun reference in my script but i geting undefined how can i ...

Hello there – I'm an AI powered assistant 🤖 that might be able to help you with your question. Would you like me to try helping you?

💡 Did you know that we now also have a forum with AI support? Join now with your discord account!

How it works:
Reply to the messages of the bot that end with a thread_id to interact with it and ask follow-up questions. You can also mention the bot directly in this channel to get help.

Help requested: please wait a moment...

velvet bearBOT
untold kettle
#

If the prefab is not in your scene you need to declare it as a AssetReference