Fetch initial live entity view explicitly
This commit is contained in:
parent
e3ccc75d5e
commit
acb341021f
2 changed files with 8 additions and 2 deletions
|
|
@ -481,7 +481,13 @@ namespace GameCult.Eve.UnityScene
|
|||
recordKeys: new[] { entityViewPointer },
|
||||
schemaIds: new[] { EveEntitySoaViewDocument.SchemaId })
|
||||
.GetAwaiter().GetResult();
|
||||
if (_node.Database.Cache.Get(new CultRecordKey(entityViewPointer)) is EveEntitySoaViewDocument current)
|
||||
var current = _node.Database.Cache.Get(new CultRecordKey(entityViewPointer)) as EveEntitySoaViewDocument
|
||||
?? _snapshot!
|
||||
.FetchDocumentsAsync<EveEntitySoaViewDocument>(
|
||||
recordKeys: new[] { entityViewPointer },
|
||||
schemaIds: new[] { EveEntitySoaViewDocument.SchemaId })
|
||||
.GetAwaiter().GetResult().FirstOrDefault();
|
||||
if (current != null)
|
||||
_liveDocuments.Enqueue(current);
|
||||
}
|
||||
_subscriptions.SubscribeAsync(
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "org.gamecult.eve.unity-scene",
|
||||
"displayName": "Eve Unity Scene Lowering",
|
||||
"version": "0.3.12",
|
||||
"version": "0.3.13",
|
||||
"unity": "2021.3",
|
||||
"description": "Provider-agnostic Unity scene shell for gamecult.eve.surface.v1 interactive world surfaces.",
|
||||
"dependencies": {
|
||||
|
|
|
|||
Reference in a new issue