I have been trying to adjust the transform on the weapon prefabs and have been unsuccessful. This works on other prefabs like chairs but cannot get any of the weapons to move around.
var gun = GameManager.server.CreateEntity("assets/prefabs/weapons/mp5/mp5.entity.prefab", parentObject.transform.position);
gun.Spawn();
gun.SetParent(parentObject);
gun.transform.localPosition = new Vector3(0f, 2f, 0f);
gun.transform.Rotate(new Vector3(0f, 90f, 0f));
gun.transform.hasChanged = true;
gun.TransformChanged();
gun.SendNetworkUpdateImmediate(true);It will spawn to the parent object as a child, but flat below it - I cannot get the weapon prefab to be positioned precisely, am I missing something?