Skip to content

Commit a8476f9

Browse files
authored
Merge pull request #64 from ExtendRealityLtd/feat/add-prefab-creator
feat(Utility): add prefab creator
2 parents 24143e1 + 9442303 commit a8476f9

17 files changed

Lines changed: 150 additions & 368 deletions

Documentation/HowToGuides/ConvertingAFloatActionToABooleanAction/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ Create a new `Cube` Unity 3D Object by selecting `Main Menu -> GameObject -> 3D
3030

3131
### Step 2
3232

33-
Expand the `Tilia Input UnityInputManager` package directory in the Unity Project window and select then `Packages -> Tilia Input UnityInputManager -> Runtime -> Prefabs -> Actions` directory then drag and drop the `Input.UnityInputManager.Axis1DAction` prefab into the Unity Hierarchy window.
33+
Add a `Input.UnityInputManager.Axis1DAction` prefab to the Unity project hierarchy by selecting `GameObject -> Tilia -> Prefabs -> Input -> UnityInputManager -> Actions -> Input.UnityInputManager.Axis1DAction` from the Unity main top menu.
3434

3535
> Be sure to use the `Input.UnityInputManager.Axis1DAction` prefab and not just add the `Unity Input Manager Axis 1D Action` component to a GameObject as the component needs linking to a `MomentProcessor` to function.
3636
37-
![Drag Axis1DActionAction To Hierarchy](assets/images/DragAxis1DActionActionToHierarchy.png)
38-
3937
### Step 3
4038

4139
Select the `Input.UnityInputManager.Axis1DAction` GameObject in the Unity Hierarchy window and change the `Axis Name` parameter on the `Unity Input Manager Axis 1D Action` component to listen for the desired axis, in this case enter `Tilia.Input.UnityInputManager_Axis9` to listen for the Left Trigger axis on an Xbox Controller.

Documentation/HowToGuides/ConvertingAFloatActionToABooleanAction/assets/images/DragAxis1DActionActionToHierarchy.png.meta

Lines changed: 0 additions & 88 deletions
This file was deleted.

Documentation/HowToGuides/UsingTheUnityAxisAction/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ We will utilize a 1D axis action to control the position of this sphere in the s
2828

2929
### Step 2
3030

31-
Expand the `Tilia Input UnityInputManager` package directory in the Unity Project window and select then `Packages -> Tilia Input UnityInputManager -> Runtime -> Prefabs -> Actions` directory then drag and drop the `Input.UnityInputManager.1DAxisAction` prefab into the Unity Hierarchy window.
31+
Add a `Input.UnityInputManager.Axis1DAction` prefab to the Unity project hierarchy by selecting `GameObject -> Tilia -> Prefabs -> Input -> UnityInputManager -> Actions -> Input.UnityInputManager.Axis1DAction` from the Unity main top menu.
3232

33-
> Be sure to use the `Input.UnityInputManager.1DAxisAction` prefab and not just add the `Unity Input Manager Axis 1D Action` component to a GameObject as the component needs linking to a `MomentProcessor` to function.
34-
35-
![Drag 1D AxisAction To Hierarchy](assets/images/Drag1DAxisActionToHierarchy.png)
33+
> Be sure to use the `Input.UnityInputManager.Axis1DAction` prefab and not just add the `Unity Input Manager Axis 1D Action` component to a GameObject as the component needs linking to a `MomentProcessor` to function.
3634
3735
### Step 3
3836

Binary file not shown.

Documentation/HowToGuides/UsingTheUnityAxisAction/assets/images/Drag1DAxisActionToHierarchy.png.meta

Lines changed: 0 additions & 88 deletions
This file was deleted.

Documentation/HowToGuides/UsingTheUnityButtonAction/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ This will form the basic floor of the scene world and provide a way of testing a
3131

3232
### Step 2
3333

34-
Expand the `Tilia Input UnityInputManager` package directory in the Unity Project window and select then `Packages -> Tilia Input UnityInputManager -> Runtime -> Prefabs -> Actions` directory then drag and drop the `Input.UnityInputManager.ButtonAction` prefab into the Unity Hierarchy window.
34+
Add a `Input.UnityInputManager.ButtonAction` prefab to the Unity project hierarchy by selecting `GameObject -> Tilia -> Prefabs -> Input -> UnityInputManager -> Actions -> Input.UnityInputManager.ButtonAction` from the Unity main top menu.
3535

3636
> Be sure to use the `Input.UnityInputManager.ButtonAction` prefab and not just add the `Unity Input Manager Button Action` component to a GameObject as the component needs linking to a `MomentProcessor` to function.
3737
38-
![Drag ButtonAction To Hierarchy](assets/images/DragButtonActionToHierarchy.png)
39-
4038
### Step 3
4139

4240
Select the `Input.UnityInputManager.ButtonAction` GameObject in the Unity Hierarchy window and change the `Key Code` parameter on the `Unity Input Manager Button Action` component to listen for the desired key press, in this case select `Space` to listen for the press of the Spacebar on the keyboard.
@@ -75,9 +73,7 @@ Play the Unity scene and press the Spacebar on the keyboard and the `Floor` Game
7573

7674
Let's use one the `Controller Mapping` prefabs to do the same action as outlined above but based on a controller press.
7775

78-
Expand the `Tilia Input UnityInputManager` Package directory in the Unity Project window and select then `Packages -> Tilia Input UnityInputManager -> Runtime -> Prefabs -> Controller Mappings` directory then drag and drop the `Input.UnityInputManager.XboxController` prefab into the Unity Hierarchy window.
79-
80-
![Drag Xbox Controller Mapping To Hierarchy](assets/images/DragXboxControllerMappingToHierarchy.png)
76+
Add a `Input.UnityInputManager.XboxController` prefab to the Unity project hierarchy by selecting `GameObject -> Tilia -> Prefabs -> Input -> UnityInputManager -> ControllerMappings -> Input.UnityInputManager.XboxController` from the Unity main top menu.
8177

8278
### Step 7
8379

Binary file not shown.

Documentation/HowToGuides/UsingTheUnityButtonAction/assets/images/DragButtonActionToHierarchy.png.meta

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)