ソースコード
using UnityEngine; public static class GameObjectUtils { public static GameObject InstantiateWithoutClone( UnityEngine.Object original ) { var result = Instantiate( original ); result.name = result.name.Replace( "(Clone)", "" ); return result; } }
使い方
var go = GameObjectUtils.InstantiateWithoutClone( prefab );