Using PlayMaker to create a game, and exporting it to STYLY -7-

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.

[11] 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.

[12] 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.

[13] Uploading to STYLY

In order to upload projects to STYLY, setup of the STYLY Unity Uploader is needed. If you have never done this before, please refer to this page. Before uploading to STYLY, we setup the local cache server to make the upload time shorter.

If you’re a Mac user : Select the “Unity” tab, and select “Preferences”.

If you’re a Windows user : Select the “Edit” tab, and select “Preferences”.

A window like the next image will pop up.

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.

[14] 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-

Using PlayMaker to create a game, and exporting it to STYLY -3-

Using PlayMaker to create a game, and exporting it to STYLY -4-

Using PlayMaker to create a game, and exporting it to STYLY -5-

Using PlayMaker to create a game, and exporting it to STYLY -6-

Using PlayMaker to create a game, and exporting it to STYLY -7-