Skip to content

Commit 168fd6f

Browse files
Merge pull request #1807 from Microsoft/Stabilization
Final merge of Stabilization into master
2 parents 3dfeab5 + b622af0 commit 168fd6f

File tree

2 files changed

+39
-36
lines changed

2 files changed

+39
-36
lines changed

Assets/HoloToolkit-Examples/UX/Prefabs/ButtonTraditional.prefab

+31-26
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,35 @@ Prefab:
1111
m_ParentPrefab: {fileID: 0}
1212
m_RootGameObject: {fileID: 1723860127229764}
1313
m_IsPrefabParent: 1
14-
--- !u!1 &1222088547826978
14+
--- !u!1 &1203363007505902
1515
GameObject:
1616
m_ObjectHideFlags: 0
1717
m_PrefabParentObject: {fileID: 0}
1818
m_PrefabInternal: {fileID: 100100000}
1919
serializedVersion: 5
2020
m_Component:
21-
- component: {fileID: 4130313901698084}
22-
- component: {fileID: 33256254154749082}
23-
- component: {fileID: 23208368517671954}
21+
- component: {fileID: 4737169607854254}
22+
- component: {fileID: 23392110358088574}
23+
- component: {fileID: 102860042799533698}
2424
m_Layer: 0
25-
m_Name: Border
25+
m_Name: 3DTextPrefab
2626
m_TagString: Untagged
2727
m_Icon: {fileID: 0}
2828
m_NavMeshLayer: 0
2929
m_StaticEditorFlags: 0
3030
m_IsActive: 1
31-
--- !u!1 &1363220036042144
31+
--- !u!1 &1222088547826978
3232
GameObject:
3333
m_ObjectHideFlags: 0
3434
m_PrefabParentObject: {fileID: 0}
3535
m_PrefabInternal: {fileID: 100100000}
3636
serializedVersion: 5
3737
m_Component:
38-
- component: {fileID: 4579364449369966}
39-
- component: {fileID: 23830137844614850}
40-
- component: {fileID: 102305476173212582}
38+
- component: {fileID: 4130313901698084}
39+
- component: {fileID: 33256254154749082}
40+
- component: {fileID: 23208368517671954}
4141
m_Layer: 0
42-
m_Name: 3DTextPrefab
42+
m_Name: Border
4343
m_TagString: Untagged
4444
m_Icon: {fileID: 0}
4545
m_NavMeshLayer: 0
@@ -105,18 +105,18 @@ Transform:
105105
m_LocalPosition: {x: -0.2367169, y: -0.081, z: 1.953}
106106
m_LocalScale: {x: 1, y: 1, z: 1}
107107
m_Children:
108-
- {fileID: 4579364449369966}
108+
- {fileID: 4737169607854254}
109109
- {fileID: 4130313901698084}
110110
- {fileID: 4892952885209378}
111111
m_Father: {fileID: 0}
112112
m_RootOrder: 0
113113
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
114-
--- !u!4 &4579364449369966
114+
--- !u!4 &4737169607854254
115115
Transform:
116116
m_ObjectHideFlags: 1
117117
m_PrefabParentObject: {fileID: 0}
118118
m_PrefabInternal: {fileID: 100100000}
119-
m_GameObject: {fileID: 1363220036042144}
119+
m_GameObject: {fileID: 1203363007505902}
120120
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
121121
m_LocalPosition: {x: 0.19220805, y: -0.04678178, z: 0.035821557}
122122
m_LocalScale: {x: 0.005, y: 0.005, z: 0.005}
@@ -146,6 +146,7 @@ MeshRenderer:
146146
m_Enabled: 1
147147
m_CastShadows: 1
148148
m_ReceiveShadows: 1
149+
m_DynamicOccludee: 1
149150
m_MotionVectors: 1
150151
m_LightProbeUsage: 1
151152
m_ReflectionProbeUsage: 1
@@ -161,6 +162,7 @@ MeshRenderer:
161162
m_PreserveUVs: 1
162163
m_IgnoreNormalsForChartDetection: 0
163164
m_ImportantGI: 0
165+
m_StitchLightmapSeams: 0
164166
m_SelectedEditorRenderState: 3
165167
m_MinimumChartSize: 4
166168
m_AutoUVMaxDistance: 0.5
@@ -169,30 +171,32 @@ MeshRenderer:
169171
m_SortingLayerID: 0
170172
m_SortingLayer: 0
171173
m_SortingOrder: 0
172-
--- !u!23 &23518754739827216
174+
--- !u!23 &23392110358088574
173175
MeshRenderer:
174176
m_ObjectHideFlags: 1
175177
m_PrefabParentObject: {fileID: 0}
176178
m_PrefabInternal: {fileID: 100100000}
177-
m_GameObject: {fileID: 1788152682178662}
179+
m_GameObject: {fileID: 1203363007505902}
178180
m_Enabled: 1
179181
m_CastShadows: 1
180182
m_ReceiveShadows: 1
183+
m_DynamicOccludee: 1
181184
m_MotionVectors: 1
182185
m_LightProbeUsage: 1
183186
m_ReflectionProbeUsage: 1
184187
m_Materials:
185-
- {fileID: 2100000, guid: 078f88c13cad1ae4a8004ac6e600f242, type: 2}
188+
- {fileID: 2100000, guid: 1017ef825d041c749bab30bf03aca0d3, type: 2}
186189
m_StaticBatchInfo:
187190
firstSubMesh: 0
188191
subMeshCount: 0
189192
m_StaticBatchRoot: {fileID: 0}
190193
m_ProbeAnchor: {fileID: 0}
191194
m_LightProbeVolumeOverride: {fileID: 0}
192195
m_ScaleInLightmap: 1
193-
m_PreserveUVs: 1
196+
m_PreserveUVs: 0
194197
m_IgnoreNormalsForChartDetection: 0
195198
m_ImportantGI: 0
199+
m_StitchLightmapSeams: 0
196200
m_SelectedEditorRenderState: 3
197201
m_MinimumChartSize: 4
198202
m_AutoUVMaxDistance: 0.5
@@ -201,30 +205,32 @@ MeshRenderer:
201205
m_SortingLayerID: 0
202206
m_SortingLayer: 0
203207
m_SortingOrder: 0
204-
--- !u!23 &23830137844614850
208+
--- !u!23 &23518754739827216
205209
MeshRenderer:
206210
m_ObjectHideFlags: 1
207211
m_PrefabParentObject: {fileID: 0}
208212
m_PrefabInternal: {fileID: 100100000}
209-
m_GameObject: {fileID: 1363220036042144}
213+
m_GameObject: {fileID: 1788152682178662}
210214
m_Enabled: 1
211215
m_CastShadows: 1
212216
m_ReceiveShadows: 1
217+
m_DynamicOccludee: 1
213218
m_MotionVectors: 1
214219
m_LightProbeUsage: 1
215220
m_ReflectionProbeUsage: 1
216221
m_Materials:
217-
- {fileID: 2100000, guid: 86574c70442309b45be5a1c37a37a40b, type: 3}
222+
- {fileID: 2100000, guid: 078f88c13cad1ae4a8004ac6e600f242, type: 2}
218223
m_StaticBatchInfo:
219224
firstSubMesh: 0
220225
subMeshCount: 0
221226
m_StaticBatchRoot: {fileID: 0}
222227
m_ProbeAnchor: {fileID: 0}
223228
m_LightProbeVolumeOverride: {fileID: 0}
224229
m_ScaleInLightmap: 1
225-
m_PreserveUVs: 0
230+
m_PreserveUVs: 1
226231
m_IgnoreNormalsForChartDetection: 0
227232
m_ImportantGI: 0
233+
m_StitchLightmapSeams: 0
228234
m_SelectedEditorRenderState: 3
229235
m_MinimumChartSize: 4
230236
m_AutoUVMaxDistance: 0.5
@@ -288,13 +294,13 @@ Animator:
288294
m_WarningMessage:
289295
m_HasTransformHierarchy: 1
290296
m_AllowConstantClipSamplingOptimization: 1
291-
--- !u!102 &102305476173212582
297+
--- !u!102 &102860042799533698
292298
TextMesh:
293299
serializedVersion: 3
294300
m_ObjectHideFlags: 1
295301
m_PrefabParentObject: {fileID: 0}
296302
m_PrefabInternal: {fileID: 100100000}
297-
m_GameObject: {fileID: 1363220036042144}
303+
m_GameObject: {fileID: 1203363007505902}
298304
m_Text: Button
299305
m_OffsetZ: 0
300306
m_CharacterSize: 1
@@ -320,9 +326,8 @@ MonoBehaviour:
320326
m_Script: {fileID: 11500000, guid: e77a98cf320fe9340a55eecfe4567ca4, type: 3}
321327
m_Name:
322328
m_EditorClassIdentifier:
323-
FilterTag:
324-
Tag: Default
325329
ButtonState: 4
330+
ButtonPressFilter: 1
326331
RequireGaze: 1
327332
MainCollider: {fileID: 0}
328333
MainRenderer: {fileID: 0}
@@ -337,6 +342,7 @@ MonoBehaviour:
337342
m_Script: {fileID: 11500000, guid: 728fec8e9feecf64f933543126cbecae, type: 3}
338343
m_Name:
339344
m_EditorClassIdentifier:
345+
TargetAnimator: {fileID: 95552014740733416}
340346
AnimActions:
341347
- ButtonState: 0
342348
ParamName: State
@@ -380,4 +386,3 @@ MonoBehaviour:
380386
IntValue: 5
381387
FloatValue: 0
382388
InvalidParam: 0
383-
TargetAnimator: {fileID: 95552014740733416}

Assets/HoloToolkit/UX/README.md

+8-10
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Useful common UX controls that you can leverage in your application.
44

5-
6-
75
### [Materials](Materials)
86

97
Materials used in prefabs
@@ -12,7 +10,7 @@ Materials used in prefabs
1210

1311
Material for 3DTextPrefab with occlusion support. Requires 3DTextShader.shader
1412

15-
![Default Font material vs 3DTextSegoeUI material](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions06.png)
13+
![Default Font material vs 3DTextSegoeUI material](../../../External/ReadMeImages/TextPrefabInstructions06.png)
1614

1715
### [Prefabs](Prefabs)
1816

@@ -28,19 +26,19 @@ UI Text Mesh prefab with optimized scaling factor at 2-meter distance. (Please r
2826

2927
**IMPORTANT: Text Prefab uses open source font 'Selawik'. To use Text Prefab with different font, please import font file and follow the instruction below. Below example shows how to use 'Segoe UI' font with Text Prefab.**
3028

31-
![Importing Segoe UI font file](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions01.png)
29+
![Importing Segoe UI font file](../../../External/ReadMeImages/TextPrefabInstructions01.png)
3230

3331
1. Assign font texture to 3DTextSegoeUI.mat material.
34-
![Assigning font texture](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions02.png)
32+
![Assigning font texture](External/ReadMeImages/TextPrefabInstructions02.png)
3533

3634
2. On 3DTextSegoeUI.mat material, select the shader Custom/3DTextShader.shader.
37-
![Assigning shader](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions03.png)
35+
![Assigning shader](../../../External/ReadMeImages/TextPrefabInstructions03.png)
3836

3937
3. Assign Segoe UI font and 3DTextSegoeUI material to the text components in the prefabs.
40-
![Assigning font file and material](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions04.png)
38+
![Assigning font file and material](../../../External/ReadMeImages/TextPrefabInstructions04.png)
4139

42-
4. Follow the same steps for the sample text layout prefabs in [HoloToolkit-Examples\Text](../..//HoloToolkit-Examples/Text)
43-
![Sample layout prefabs](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions05.png)
40+
4. Follow the same steps for the sample text layout prefabs in [HoloToolkit-Examples\Text](../../HoloToolkit-Examples/UX/Prefabs)
41+
![Sample layout prefabs](../../../External/ReadMeImages/TextPrefabInstructions05.png)
4442

4543
**Working with Fonts in Unity**
4644

@@ -60,7 +58,7 @@ When adding a UI or canvas based Text element to a scene, the size disparity is
6058

6159
**Disclaimer**: The default value of any font may be effected by the texture size of that font or how the font was imported into Unity. These tests were performed based on the default Arial font in Unity, as well as one other imported font.
6260

63-
![Font size with scaling factors](https://github.com/cre8ivepark/HoloToolkit-Unity/blob/master/External/ReadMeImages/TextPrefabInstructions07.png)
61+
![Font size with scaling factors](../../../External/ReadMeImages/TextPrefabInstructions07.png)
6462

6563
### [Scripts](Scripts)
6664

0 commit comments

Comments
 (0)