-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed for sliders with min-max values outside range \[0-1\] when slid…
…er is configured for grab interaction (IsTouchable = false)
- Loading branch information
1 parent
e25a7a8
commit 8bc1f68
Showing
8 changed files
with
635 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
223 changes: 223 additions & 0 deletions
223
org.mixedrealitytoolkit.uxcore/Tests/Runtime/Prefabs/GrabSliderTest.prefab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!1 &1110146781791029298 | ||
GameObject: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
serializedVersion: 6 | ||
m_Component: | ||
- component: {fileID: 6995764633665568835} | ||
- component: {fileID: 225870791008350227} | ||
- component: {fileID: 2620194905356491814} | ||
m_Layer: 0 | ||
m_Name: GrabSliderTest | ||
m_TagString: Untagged | ||
m_Icon: {fileID: 0} | ||
m_NavMeshLayer: 0 | ||
m_StaticEditorFlags: 0 | ||
m_IsActive: 1 | ||
--- !u!224 &6995764633665568835 | ||
RectTransform: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 1110146781791029298} | ||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
m_LocalPosition: {x: 0, y: 0, z: 1} | ||
m_LocalScale: {x: 0.001, y: 0.001, z: 0.001} | ||
m_ConstrainProportionsScale: 0 | ||
m_Children: | ||
- {fileID: 3903447421959142264} | ||
m_Father: {fileID: 0} | ||
m_RootOrder: 0 | ||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
m_AnchorMin: {x: 0.5, y: 0.5} | ||
m_AnchorMax: {x: 0.5, y: 0.5} | ||
m_AnchoredPosition: {x: 0, y: 1.6} | ||
m_SizeDelta: {x: 200, y: 200} | ||
m_Pivot: {x: 0.5, y: 0.5} | ||
--- !u!223 &225870791008350227 | ||
Canvas: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 1110146781791029298} | ||
m_Enabled: 1 | ||
serializedVersion: 3 | ||
m_RenderMode: 2 | ||
m_Camera: {fileID: 0} | ||
m_PlaneDistance: 100 | ||
m_PixelPerfect: 0 | ||
m_ReceivesEvents: 1 | ||
m_OverrideSorting: 0 | ||
m_OverridePixelPerfect: 0 | ||
m_SortingBucketNormalizedSize: 0 | ||
m_AdditionalShaderChannelsFlag: 30 | ||
m_SortingLayerID: 0 | ||
m_SortingOrder: 0 | ||
m_TargetDisplay: 0 | ||
--- !u!114 &2620194905356491814 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 1110146781791029298} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} | ||
m_Name: | ||
m_EditorClassIdentifier: | ||
m_UiScaleMode: 0 | ||
m_ReferencePixelsPerUnit: 100 | ||
m_ScaleFactor: 1 | ||
m_ReferenceResolution: {x: 800, y: 600} | ||
m_ScreenMatchMode: 0 | ||
m_MatchWidthOrHeight: 0 | ||
m_PhysicalUnit: 3 | ||
m_FallbackScreenDPI: 96 | ||
m_DefaultSpriteDPI: 96 | ||
m_DynamicPixelsPerUnit: 1 | ||
m_PresetInfoIsWorld: 0 | ||
--- !u!1001 &8710701791544316266 | ||
PrefabInstance: | ||
m_ObjectHideFlags: 0 | ||
serializedVersion: 2 | ||
m_Modification: | ||
m_TransformParent: {fileID: 6995764633665568835} | ||
m_Modifications: | ||
- target: {fileID: 4270209841583229004, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_Size.x | ||
value: 200 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198131096132917, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_AnchorMax.x | ||
value: 0.5 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132670553562, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_AnchorMax.x | ||
value: 0.5 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132670553562, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_AnchorMin.x | ||
value: 0.5 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132670553562, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_AnchoredPosition.x | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132670553562, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_AnchoredPosition.y | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834573, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: value | ||
value: 5 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834573, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: maxValue | ||
value: 10 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834573, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: isTouchable | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_Pivot.x | ||
value: 0.5 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_Pivot.y | ||
value: 0.5 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_RootOrder | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_AnchorMax.x | ||
value: 0.5 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_AnchorMax.y | ||
value: 0.5 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_AnchorMin.x | ||
value: 0.5 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_AnchorMin.y | ||
value: 0.5 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_SizeDelta.x | ||
value: 200 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_SizeDelta.y | ||
value: 20 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_LocalPosition.x | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_LocalPosition.y | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_LocalPosition.z | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_LocalRotation.w | ||
value: 1 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_LocalRotation.x | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_LocalRotation.y | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_LocalRotation.z | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_AnchoredPosition.x | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_AnchoredPosition.y | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_LocalEulerAnglesHint.x | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_LocalEulerAnglesHint.y | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_LocalEulerAnglesHint.z | ||
value: 0 | ||
objectReference: {fileID: 0} | ||
- target: {fileID: 5677198132984834579, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
propertyPath: m_Name | ||
value: CanvasSlider | ||
objectReference: {fileID: 0} | ||
m_RemovedComponents: [] | ||
m_SourcePrefab: {fileID: 100100000, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
--- !u!224 &3903447421959142264 stripped | ||
RectTransform: | ||
m_CorrespondingSourceObject: {fileID: 5677198132984834578, guid: f64620d502cdf0f429efa27703913cb7, type: 3} | ||
m_PrefabInstance: {fileID: 8710701791544316266} | ||
m_PrefabAsset: {fileID: 0} |
7 changes: 7 additions & 0 deletions
7
org.mixedrealitytoolkit.uxcore/Tests/Runtime/Prefabs/GrabSliderTest.prefab.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.