File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ public static T Get<T>(this GameObject prefab) where T : Component =>
2828 public static T Get < T > ( this GameObject prefab , Transform parent ) where T : Component =>
2929 prefab . Get ( parent ) . GetComponent < T > ( ) ;
3030
31- public static T Get < T > ( this GameObject prefab , Transform parent , bool spawnInWorldSpace ) where T : Component =>
32- prefab . Get ( parent , spawnInWorldSpace ) . GetComponent < T > ( ) ;
31+ public static T Get < T > ( this GameObject prefab , Transform parent , bool worldPositionStays ) where T : Component =>
32+ prefab . Get ( parent , worldPositionStays ) . GetComponent < T > ( ) ;
3333
3434 public static T Get < T > ( this GameObject prefab , Vector3 position , Quaternion rotation ) where T : Component =>
3535 prefab . Get ( position , rotation ) . GetComponent < T > ( ) ;
You can’t perform that action at this time.
0 commit comments