@@ -98,7 +98,8 @@ public static T GetPrefab<T>(PrefabType prefabType)
9898 /// <param name="rotation">The <see cref="Quaternion"/> rotation of the <see cref="GameObject"/>.</param>
9999 /// <param name="spawn">Whether the <see cref="PrefabType"/> should be initially spawned.</param>
100100 /// <returns>Returns the <see cref="GameObject"/> instantied.</returns>
101- public static GameObject Spawn ( PrefabType prefabType , Vector3 position = default , Quaternion ? rotation = null , bool spawn = true )
101+ // TOOD: Only keep this method for Exiled 10
102+ public static GameObject Spawn ( PrefabType prefabType , Vector3 position /*= default*/ , Quaternion ? rotation /*= null*/ , bool spawn /*= true*/ )
102103 {
103104 if ( ! TryGetPrefab ( prefabType , out GameObject gameObject ) )
104105 return null ;
@@ -119,6 +120,16 @@ public static GameObject Spawn(PrefabType prefabType, Vector3 position = default
119120 return newGameObject ;
120121 }
121122
123+ /// <summary>
124+ /// Spawns the <see cref="GameObject"/> of the specified <see cref="PrefabType"/>.
125+ /// </summary>
126+ /// <param name="prefabType">The <see cref="PrefabType"/>.</param>
127+ /// <param name="position">The <see cref="Vector3"/> position where the <see cref="GameObject"/> will spawn.</param>
128+ /// <param name="rotation">The <see cref="Quaternion"/> rotation of the <see cref="GameObject"/>.</param>
129+ /// <returns>Returns the <see cref="GameObject"/> instantied.</returns>
130+ public static GameObject Spawn ( PrefabType prefabType , Vector3 position = default , Quaternion ? rotation = null )
131+ => Spawn ( prefabType , position , rotation , true ) ;
132+
122133 /// <summary>
123134 /// Spawns the <see cref="GameObject"/> of the specified <see cref="PrefabType"/>.
124135 /// </summary>
0 commit comments