protected override void OnCreate()
        {
            Camera.onPreCull += OnPreCull;
            RenderPipelineManager.beginCameraRendering += OnPreCull;
            SceneView.duringSceneGui += SceneViewOnBeforeSceneGui;

            _SceneChangeTracker = new LiveLinkSceneChangeTracker(EntityManager);

            _Patcher      = new LiveLinkPatcher(World);
            _UnloadScenes = new NativeList <Hash128>(Allocator.Persistent);
            _LoadScenes   = new NativeList <Hash128>(Allocator.Persistent);
            _ChangeSets   = new List <LiveLinkChangeSet>();
        }
Beispiel #2
0
        public void SubtractArrayProducesExpectedDelta(int[] array, int[] toExclude, int[] expected)
        {
            var minuend    = new NativeArray <int>(array, Allocator.TempJob);
            var subtrahend = new NativeArray <int>(toExclude, Allocator.TempJob);

            var difference = LiveLinkSceneChangeTracker.SubtractArrays(minuend, subtrahend);
            var actual     = difference.ToArray();

            minuend.Dispose();
            subtrahend.Dispose();
            difference.Dispose();

            CollectionAssert.AreEqual(expected, actual);
        }