Skip to content

Commit e7bed66

Browse files
authored
Merge pull request #6932 from ms738/patch-22
Update README_Button.md
2 parents 6ef666f + 1d5eaf1 commit e7bed66

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/README_Button.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The events exposed in the prefab itself as well as the [Interactable](README_In
5151

5252
<img src="../Documentation/Images/Button/MRTK_Button_HowToUse_Interactable.png" width="450">
5353

54-
You can configure when the pressable button fires the *OnClick* event via the `PhysicalPressEventRouter` on the button. For example, you can set *OnClick* to fire when the button is first pressed, as opposed to be pressed and released, by setting *Interactable On Click* to *Event On Press*.
54+
You can configure when the pressable button fires the *OnClick* event via the `PhysicalPressEventRouter` on the button. For example, you can set *OnClick* to fire when the button is first pressed, as opposed to being pressed and released, by setting *Interactable On Click* to *Event On Press*.
5555

5656
<img src="../Documentation/Images/Button/MRTK_Button_HowTo_Events.png" width="450">
5757

@@ -160,7 +160,7 @@ When you press the button, it will move and generate proper events exposed in th
160160

161161
### 2. Adding visual feedback to the basic cube button
162162

163-
MRTK Standard Shader provides various features that makes it easy to add visual feedback. Create an material and select shader `Mixed Reality Toolkit/Standard`. Or you can use or duplicate one of the existing materials under `/SDK/StandardAssets/Materials/` that uses MRTK Standard Shader.
163+
MRTK Standard Shader provides various features that makes it easy to add visual feedback. Create a material and select shader `Mixed Reality Toolkit/Standard`. Or you can use or duplicate one of the existing materials under `/SDK/StandardAssets/Materials/` that uses MRTK Standard Shader.
164164

165165
<img src="../Documentation/Images/Button/MRTK_PressableButtonCube4.png" width="450">
166166

@@ -180,18 +180,18 @@ Since `PressableButton.cs` script exposes events such as TouchBegin(), TouchEnd(
180180

181181
### 4. Adding visual states and handle far interaction events
182182

183-
[Interactable](README_Interactable.md) is a script that makes it easy to create a visual states for the various types of input interactions. It also handles far interaction events. Add `Interactable.cs` and drag and drop the cube object onto the **Target** field under **Profiles**. Then, create a new Theme with a type **ScaleOffsetColorTheme**. Under this theme, you can specify the color of the object for the specific interaction states such as **Focus** and **Pressed**. You can also control Scale and Offset as well. Check **Easing** and set duration to make the visual transition smooth.
183+
[Interactable](README_Interactable.md) is a script that makes it easy to create a visual state for the various types of input interactions. It also handles far interaction events. Add `Interactable.cs` and drag and drop the cube object onto the **Target** field under **Profiles**. Then, create a new Theme with a type **ScaleOffsetColorTheme**. Under this theme, you can specify the color of the object for the specific interaction states, such as **Focus** and **Pressed**. You can also control Scale and Offset, as well. Check **Easing** and set duration to make the visual transition smooth.
184184

185185
![Select profile theme](Images/Button/mrtk_button_profiles.gif)
186186

187-
You will see the object responds to both far(hand ray or gaze cursor) and near(hand) interactions.
187+
You will see the object respond to both far (hand ray or gaze cursor) and near(hand) interactions.
188188

189189
<img src="../Documentation/Images/Button/MRTK_PressableButtonCubeRun3.jpg">
190190
<img src="../Documentation/Images/Button/MRTK_PressableButtonCubeRun4.jpg">
191191

192192
## Custom button examples
193193

194-
In the [HandInteractionExample scene](README_HandInteractionExamples.md), you can take a look at the piano and round button examples which are both using `PressableButton`.
194+
In the [HandInteractionExample scene](README_HandInteractionExamples.md), see the piano and round button examples which are both using `PressableButton`.
195195

196196
<img src="../Documentation/Images/Button/MRTK_Button_Custom1.png" width="450">
197197

0 commit comments

Comments
 (0)