|
|
@ -197,7 +197,7 @@ public class EntityPath |
|
|
|
foreach (var part in path) |
|
|
|
foreach (var part in path) |
|
|
|
fixed (byte* ptr = part.AsSpan()) |
|
|
|
fixed (byte* ptr = part.AsSpan()) |
|
|
|
if (skipLookup || (parent = new(ecs_lookup_child(world, parent, ptr))).IsNone) { |
|
|
|
if (skipLookup || (parent = new(ecs_lookup_child(world, parent, ptr))).IsNone) { |
|
|
|
var desc = new ecs_entity_desc_t { _name = ptr, _sep = CStringExtensions.ETX }; |
|
|
|
var desc = new ecs_entity_desc_t { _name = ptr, _sep = CStringExtensions.Empty }; |
|
|
|
if (parent.IsSome) desc.add[0] = Id.Pair(FlecsBuiltIn.ChildOf, parent); |
|
|
|
if (parent.IsSome) desc.add[0] = Id.Pair(FlecsBuiltIn.ChildOf, parent); |
|
|
|
parent = new(ecs_entity_init(world, &desc)); |
|
|
|
parent = new(ecs_entity_init(world, &desc)); |
|
|
|
skipLookup = true; |
|
|
|
skipLookup = true; |
|
|
|