Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Duplicating a Game Object in C#

Discussion in 'Scripting' started by artistshc, Apr 18, 2023.

  1. artistshc

    artistshc

    Joined:
    Mar 7, 2015
    Posts:
    79
    Are you able to duplicate a game object in C# instead of instantiating? If so, how do you do it? Thank you.
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,940
    Instantiating is duplicating. You can use it to duplicate any UnityEngine.Object.
     
  3. artistshc

    artistshc

    Joined:
    Mar 7, 2015
    Posts:
    79
    Thank you