Answers for "copy object unity c#"

C#
5

clone gameobject unity c#

public GameObject rootObj;

void Start()
{
    GameObject duplicate = Instantiate(rootObj);
}
Posted by: Guest on July-06-2020
1

c# copy an object

class TestClass
    {
        public TestClass Copy()
        {
            return MemberwiseClone();
        }



    }
Posted by: Guest on November-01-2020

C# Answers by Framework

Browse Popular Code Answers by Language