Hi everyone,
A Unity newbie here.
What is the significance/idea behind attaching a script to a prefab and then disabling it put simply for a beginner?
I cannot figure it out by reading through search results…
Thank you
Hi everyone,
A Unity newbie here.
What is the significance/idea behind attaching a script to a prefab and then disabling it put simply for a beginner?
I cannot figure it out by reading through search results…
Thank you
There are functions/methods that are executed when you enable(as well as when you disable after being enabled) a script, this includes the start function, etc.
It’s possible to isolate interactions with the GameObject(s) and the world around on the prefab during enabling scripts. This may be contingent on things existing in the world that you can’t readily guarantee will exist until the player is in game and various actions have taken place in the game world.