Exemplo n.º 1
0
        void SetSizePriority(float value)
        {
            var weights = m_SpatialPriorityWeightsSelector.GetValue();

            weights.z = value;
            Dispatcher.Dispatch(SetDebugOptionsAction.From(new { spatialPriorityWeights = weights }));
        }
        public IEnumerator DebugOptions_QualityLevelIsUpdatedTwoWay()
        {
            //Given a runtime that has started

            //When Start() as executed and we change the value of the state
            Dispatcher.Dispatch(SetDebugOptionsAction.From(new { qualityLevel = "Test" }));
            yield return(WaitAFrame());

            //Then the Quality String option TMPRO should have the changed value
            Assert.True(IsDialogOpen("DebugOptionsDialog"));
            var listItem  = GivenGameObjectNamed("Text List Item");
            var valueText = GivenObjectsInChildren <TMPro.TMP_Text>(listItem).First(c => c.name == "Value Text");

            Assert.AreEqual(valueText.text, "Test");
            //Then the Quality String option in global state should have the changed value
            var getter   = UISelector.createSelector <string>(ApplicationContext.current, nameof(IQualitySettingsDataProvider.qualityLevel));
            var newValue = getter();

            Assert.AreEqual(newValue, "Test");
        }
Exemplo n.º 3
0
 void OnShowActorDebugToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { showActorDebug = on }));
 }
Exemplo n.º 4
0
 void SetTargetFps(int value)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { targetFps = value }));
 }
Exemplo n.º 5
0
 void SetHlodPrioritizer(int value)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { hlodPrioritizer = value }));
 }
Exemplo n.º 6
0
 void SetHlodDelayMode(int value)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { hlodDelayMode = value }));
 }
Exemplo n.º 7
0
 void OnHlodsToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { useHlods = on }));
 }
Exemplo n.º 8
0
 void OnSpatialManifestToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { useSpatialManifest = on }));
 }
Exemplo n.º 9
0
 void OnCullingToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { useCulling = on }));
 }
Exemplo n.º 10
0
 void OnDebugBoundingBoxMaterialToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { useDebugBoundingBoxMaterials = on }));
 }
Exemplo n.º 11
0
 void OnARAxisTrackingToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { ARAxisTrackingEnabled = on }));
 }