How to create a procedure in Unity

How to create a procedure in Unity

A Procedure is made of interactions, you can create interactions following these steps:

This video shows the process of creating a procedure:




Web side

  1. Login to the frontline.io website and select your workspace. after that select an existing project or create a new one.

  2. go to knowledge base in the side menu, click the new item button, and choose to create a new procedure.

  3. Edit the procedure.
    in here we will direct the flow of the procedure by connecting nodes, each node contains an interaction.

  4. lets create the first node, and by double clicking we will edit its title, we will call it. "Remove bolts".

  5. now, create the second node and connect it to the first one, call it "Remove fuel hose".

  6. finally, create the third node and call it "Remove fuel tank".

  7. You can now press save to backup the procedure, anyways, it would save automatically.

  8. When you are done with editing the procedure, and want to start the animation process, switch to Unity with your model.


UNITY side

Creating a new Interaction item

1. At the top menu go to LLS>Interactions Menu



2. Add a new interaction

3. Name the interaction and press the Done button.

4. The procedure will be added to the Hierarchy under Interactions.




5. Move to your desired camera angle, then select the interaction's Location object and press Shift+Ctrl+F, It will set the interaction's camera to that location (can only be viewed in play mode):



6. Repeat steps 1-5 to create additional interactions.

Creating the Animation

1. Choose the interaction from the Hierarchy.

2. Open the Timeline window under Window > Sequencing > Timeline and lock it.
3. Create your animation. for Unity Timeline animation tutorials please visit https://learn.unity.com/tutorial/timeline
4. Open the Interaction menu from the top menu>LLS>Interaction menu
5. Choose the Interactions you created at the Hierarchy and
Update & Sync All buttons at the Interaction menu.



6. Save your work.
When you are done you can Upload Your model to the Frontline app.

Notes
Note: You wont see your interaction until you upload a new version of your digital twin

Troubleshooting

Models are not highlighted when testing the procedure
Cause: "Highlight" models are not set.

  1. Select the interaction object in scene

  2. In the inspector, look for the "Activator Objects" field

  3. Drag the objects you wish to highlight into the list

  4. The models should now act as an "Interactive object" and the interaction will wait until the user has pressed on the object, when play testing.

Interactions are not updated when play testing
Cause: Interactions might not be linked to the server

Sometimes interactions might lose their "link" to the ones that have already been uploaded to the server.

1. Select the interaction object in scene

2. Open the Interaction Menu ( LLS > Interactions Menu )

3. Find the relevant interaction in the Interactions menu

4. While the related interaction object is select, press on the "Link" button next to the interaction in the list.




5. Check that it is linked by clicking on the interaction in the interactions menu, if this action selects an object in the scene, it means they are connected.

6. Save the scene


    • Related Articles

    • Creating a Unity Project

      To create a project in Unity: 1. In Unity Hub, select New Project 2. Make sure its template is 3D 3. Name your project 4. Select a location for your project 5. Select Create Project * It is strongly suggested to use a Git-Hub solution for version ...
    • 3D Studio - Prerequisite Unity Application

      Download Unity Application In order to use the frontline.io 3D Studio, download the Unity Application 1. Download Unity Hub from the Unity website. 2. Start installation 3. Create an account or Sign In 4. Confirm email account
    • Installing Unity

      Installation Steps To install Unity for frontline.io 3D Studio usage, follow these steps: Download Unity from the Unity Site, https://unity.com/download After installing Unity Hub, visit the download archive, download Unity 2022.3.13f1 and select the ...
    • How to create Sub-Systems

      To create a subsystem follow the steps: In the hierarchy window, right-click and select LLS > Create > Sub-system Give the newly created sub-system a name under the "Device Name" field in the inspector window Select and drag the game objects that are ...
    • Adding a Secondary Mixed Reality Object Detection While In a Procedure

      Introduction Object detection is an important feature in a mixed reality that can help in a variety of applications. In a procedure, it can be particularly useful when working on a part of a machine that needs to be removed and placed somewhere else. ...