Skip to content

Commit 47ed059

Browse files
committed
Adjust sizes and positioning in scene
1 parent 1dd9b1c commit 47ed059

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Assets/MRTK/Tools/RuntimeTools/Tools/InputFeatureUsageTool/InputFeatureUsageTool.unity

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ PrefabInstance:
370370
- target: {fileID: 7614231225992287547, guid: 18470d71939382448be2ecd06efa9662,
371371
type: 3}
372372
propertyPath: m_LocalPosition.y
373-
value: 0.901
373+
value: 0.465
374374
objectReference: {fileID: 0}
375375
- target: {fileID: 7614231225992287547, guid: 18470d71939382448be2ecd06efa9662,
376376
type: 3}
@@ -580,7 +580,7 @@ Transform:
580580
m_PrefabAsset: {fileID: 0}
581581
m_GameObject: {fileID: 1011341390}
582582
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
583-
m_LocalPosition: {x: -0.25, y: 1.0350001, z: 1}
583+
m_LocalPosition: {x: -0.25, y: 0.6, z: 1}
584584
m_LocalScale: {x: 1, y: 1, z: 1}
585585
m_Children:
586586
- {fileID: 1030416043}
@@ -872,7 +872,7 @@ Transform:
872872
m_PrefabAsset: {fileID: 0}
873873
m_GameObject: {fileID: 1737223800}
874874
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
875-
m_LocalPosition: {x: -0.25, y: 0.325, z: 0}
875+
m_LocalPosition: {x: -0.25, y: 0, z: 0}
876876
m_LocalScale: {x: 1, y: 1, z: 1}
877877
m_Children:
878878
- {fileID: 670907320236271961}

Assets/MRTK/Tools/RuntimeTools/Tools/InputFeatureUsageTool/ListInputFeatureUsages.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public class ListInputFeatureUsages : MonoBehaviour
3737
private readonly List<InputFeatureUsage> featureUsages = new List<InputFeatureUsage>();
3838
private readonly List<TextMesh> displayFeatureUsagesTextMeshes = new List<TextMesh>();
3939

40-
private const float BackingPanelMargin = 0.005f;
41-
private const float BackingPanelEntryHeight = 0.003f;
40+
private const float BackingPanelMargin = 0.05f;
41+
private const float BackingPanelEntryHeight = 0.03f;
4242
#endif // UNITY_2019_3_OR_NEWER
4343

4444
private void Update()
@@ -108,7 +108,7 @@ private void Update()
108108
Transform backingPanel = textMesh.gameObject.transform.parent.GetChild(0);
109109
// The additional 2 added to featureUsages.Count represents the source name and empty new line before the usages are listed
110110
float backingPanelHeight = BackingPanelMargin + (BackingPanelEntryHeight * (featureUsages.Count + 2)) + BackingPanelMargin;
111-
backingPanel.localScale = new Vector3(backingPanel.localScale.x, backingPanel.localScale.y, backingPanelHeight);
111+
backingPanel.localScale = new Vector3(backingPanel.localScale.x, backingPanelHeight, backingPanel.localScale.z);
112112
}
113113

114114
textMesh.text += $"{inputFeatureUsage.name}";

0 commit comments

Comments
 (0)