Asset Dump
This commit is contained in:
@@ -39,7 +39,10 @@ namespace ProjectM.Server
|
||||
{
|
||||
var container = ecb.Instantiate(spawner.Prefab);
|
||||
var position = BaseGridMath.CellToWorld(anchor, spawner.Cell);
|
||||
ecb.SetComponent(container, LocalTransform.FromPosition(position));
|
||||
// Preserve the prefab's baked scale/rotation (FromPosition would reset Scale to 1).
|
||||
var xform = SystemAPI.GetComponent<LocalTransform>(spawner.Prefab);
|
||||
xform.Position = position;
|
||||
ecb.SetComponent(container, xform);
|
||||
}
|
||||
|
||||
// One-shot: remove the spawner so RequireForUpdate fails and the system idles.
|
||||
|
||||
Reference in New Issue
Block a user