-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
20 lines (14 loc) · 949 Bytes
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
dump all systems: WorldUtility.FindWorld("Client_0").Systems.GetEnumerator().list;
Translation Component Query
var componentType = new ComponentType(Translation.Il2CppType, ComponentType.AccessMode.ReadOnly);
var query = EntityManager.CreateEntityQuery(new[] { componentType });
MyLogger.LogInfo($"Query Count: {query.CalculateEntityCount()}");
var entities = query.ToEntityArray(Allocator.Temp);
foreach (var entity in entities)
{
var translation = EntityManager.GetComponentData<Translation>(entity);
MyLogger.LogInfo($"Translation:{translation.Value}");
}
"Unity.Entities" addon for the game entities. https://docs.unity3d.com/Packages/co...ual/index.html
Get game world object - WorldUtility.FindWorld("Client_0");
And then World.GetExistingSystem<T>() to grab whatever system you are looking for.