/// <inheritdoc/> public override Entity FindSubEntity(Guid sceneId, Guid entityId) { EnsureContentScene(); Scene scene; if (scenes.TryGetValue(sceneId, out scene)) { Entity entity; // Note: special case of the virtual anchor (sceneID == entityId), own by the parent scene if (sceneId == entityId) { entity = scene.Parent?.FindSubEntity(entityId); } else { entity = scene.FindSubEntity(entityId); } if (entity != null) { return(entity); } } // Fall back to the content scene itself return(ContentScene.FindSubEntity(entityId)); }
/// <inheritdoc/> public override Entity FindSubEntity(Guid sceneId, Guid entityId) { EnsureContentScene(); return(ContentScene.FindSubEntity(entityId)); }