#Simple example
1 messages · Page 1 of 1 (latest)
The ColabScript is attached to something that is alreaddy in the world
it doesnt get Instantiated
thats why i asked if i can drag and drop something that is not a prefab
then the other way around
public ColabSpace colabInstance; // assign to the scene object
public SomeOtherScript somethingPrefab; // assign to the prefab
void SpawnTheColabThing() {
SomeOtherScript instance = Instantiate(somethingPrefab);
instance.colab = colabInstance; // here we are making the assignment at runtime
}```
I think im going to make a mind map right now
writing down all the Objects and where the scripts are attached and whether they are Prefabs or pre existing cause this whole thing is making me realize i dont know where anything is anymore in my project
I feel like theres a knot in my brain and i just dont get IT right now, its been just too many hours
I will get back to this issue in a couple of days because i genuinely want to understand how to change variables between my scripts like that.
im sorry for wasting your time and not getting it right now
i hope you have a lovely weekend though!