環境 Unity Entities 0.5.1 Unity Physics 0.2.5 コード
基本的にCommandBufferではなく、CommandBuffer.Concurrentを使う。 CollisionEventsJobやTriggerEventsJobでは、 [NativeSetThreadIndex] private int _threadIndex; のように宣言するとスレッドの番号を入手できるので、これをCommandBuffer.Concurrentの…
環境 Unity Entities 0.5.1 Unity Physics 0.2.5 コード
基本的にCommandBufferではなく、CommandBuffer.Concurrentを使う。 CollisionEventsJobやTriggerEventsJobでは、 [NativeSetThreadIndex] private int _threadIndex; のように宣言するとスレッドの番号を入手できるので、これをCommandBuffer.Concurrentの…