How to add components to scene programly
Can you write example, for moreunderstandability
thats probably spam bot.
you can use instantiate to spawn objects into scene
tutorial
2 Likes
You don’t add components to scenes. Components are attached to GameObjects, and GameObjects can be added to scenes. As already mentioned, you’d create a prefab with your component and Instantiate that prefab.