#How do I find stuff inside the folder?

1 messages · Page 1 of 1 (latest)

vast mango
#

Like how do I find a thing inside this folder by name?I cant reference the folder in a script.

serene torrent
#

You usually don’t, explain what your trying to do

vast mango
#

Those aren't in the scene yet

#

Do I need to have them loaded in the scene?

#

Or can I acces them by name from the folder?

serene torrent
#

Usually in code we try hard to avoid using strings and names of things all together

#

Ideally you’d want a list of the prefabs directly

vast mango
serene torrent
#

Something you make

#

A List is a c# thing

vast mango
#

So like public = ///

#

and then I keep making the references

#

until it is finsihed

#

doesn't that get messy with a lot of references?

serene torrent
#

I’d suggest googling more about c# lists

vast mango
#

Ok fine I will try that

vast mango