Exemple #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");
        }
Exemple #3
0
 void OnShowActorDebugToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { showActorDebug = on }));
 }
Exemple #4
0
 void SetTargetFps(int value)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { targetFps = value }));
 }
Exemple #5
0
 void SetHlodPrioritizer(int value)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { hlodPrioritizer = value }));
 }
Exemple #6
0
 void SetHlodDelayMode(int value)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { hlodDelayMode = value }));
 }
Exemple #7
0
 void OnHlodsToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { useHlods = on }));
 }
Exemple #8
0
 void OnSpatialManifestToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { useSpatialManifest = on }));
 }
Exemple #9
0
 void OnCullingToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { useCulling = on }));
 }
Exemple #10
0
 void OnDebugBoundingBoxMaterialToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { useDebugBoundingBoxMaterials = on }));
 }
Exemple #11
0
 void OnARAxisTrackingToggleChanged(bool on)
 {
     Dispatcher.Dispatch(SetDebugOptionsAction.From(new { ARAxisTrackingEnabled = on }));
 }