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