mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fixed the rotations of details which used RemoveComponents
This commit is contained in:
parent
1416e07f9b
commit
9bd1b32270
@ -187,8 +187,9 @@ namespace NewHorizons.Builder.Props
|
||||
// Just swap all the children to a new game object
|
||||
var newDetailGO = new GameObject(prop.name);
|
||||
newDetailGO.SetActive(false);
|
||||
newDetailGO.transform.position = prop.transform.position;
|
||||
newDetailGO.transform.parent = prop.transform.parent;
|
||||
newDetailGO.transform.position = prop.transform.position;
|
||||
newDetailGO.transform.rotation = prop.transform.rotation;
|
||||
|
||||
// Can't modify parents while looping through children bc idk
|
||||
var children = new List<Transform>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user