Hey guys, this might be a simple question but I couldnt find any related posts or questions.
What I want to do is to make a script object the copy of another one. I’m trying to do this this way:
public var test : List.<Objects>;
public var localTest : List.<Objects>;
function OnEnable(){
localTest = test;
}
Apparently this only sends a reference to the first object, thus everything I do with the second one is actually happening to the first one. I am afraid that if i loop through the first one and add the values to the second one, it will also only save references to the first one.
Any help is much appreciated