The goal for this article series is to use PlayMaker in Unity to create a FPS shooting game, and export it to the STYLY editor.
There are 7 articles for this series, so if you roughly look through the series first, I think you will get the general flow of the tutorial. In this article, we will learn how to setup the stage, export the game to STYLY, and make it playable in VR.
 Setup the Stage
In this game, we will use a round stage floating in the sky.
Find the floor segment located in myUnityAssets, and drag it onto PlayMaker Tutorial Game, making it a child.
Click the floor_segment, and move to the Inspector window. Uncheck Use Gravity, check Kinematic, and add a Rigidbody component. With these settings, we are able to keep the stage floating, and set it so no force is applied to it from bullets, but store the information of collisions, and make the objects bounce.
Set the scale floor_segment to 10, 10, 10.
Then, set the floor_segment Position of Y to -2.62. This is to adjust the head position of the player in VR, and will make it look so that the player is standing on the stage.
 Setting the second gun controller
The last setting we need before exporting to STYLY is to create a gun controller for the left hand. But, all we need to do is change the right hand controller a little.
First, select the gunController_R in the Scene Hierarchy, right click it and select Duplicate from the drop down menu.
Change the name of the duplicated object to gunController_L.
Go to State > Setup in the gunController_L, change the object name for the Find Game Object action to Controller (left).
In the Events tab, change the following: Global_TriggerPressDown_R to Global_TriggerPressDown_L, Global_TriggerPressUp_R to Global_TriggerPressUp_L
We are finished with the game creation tutorial now. Great job! Lets proceed to the final step, uploading to STYLY.
Select “local” from the Cache Server menu. The cache settings are done now.
Drag and drop all the objects inside PlayMaker Tutorial Game to the myPrefabs folder, and create a prefab from PlayMaker Tutorial Game.
Right click the prefab, and find the STYLY menu in the drop down menu. Select “Build And Upload Prefab Asset” from the STYLY menu.
The upload to STYLY will begin!
This process takes some time, so don’t cancel it, and please just wait until completion.
 Final adjustments before playing in VR
Open a new STYLY scene, and click the Assets menu from the left upper corner.
Select 3D Models, and open the myModel tab. In there, you should find the asset you just uploaded. Select this to add to the scene.
Select skyBox from the 3D Models list. I selected Epic BigCloudsSoft for this sample.
All the STYLY editors are added to the scene now! To access this scene in VR, you need to run a VR Client. To learn about the download and setup, please refer to this page.
Thank you for reading!![Related Articles]
・Using PlayMaker to create a game, and exporting it to STYLY -1-