|
How can load a prefab for example from "AssetsTower Defense PackPrefabsTurretTurret.prefab" into a: using C# script, but not a drug and drop method through the inspector? thx)
(comments are locked)
|
|
You need to put your files in a folder called "Resources" and use: Don't include the file extension.
(comments are locked)
|
|
thanks a lot, already done so:))
(comments are locked)
|
|
Thanks a lot, already done so:))
(comments are locked)
|
|
If you want to load a resouce dynamicly you must place it in your 'resources' directory and load it via 'Resource.Load()', please refer to the documentation about resources. Example: If you have your gameObject in any way (instantiated, drag and drop via inspector) you can access the transform of the gameObject with the 'transform' property. Example:
(comments are locked)
|
