PlayMaker,

翻訳がありません。下の翻訳ボタンを押してください。

STYLY supports Playmaker but unfortunately at the moment, playmaker global variables are not supported in STYLY at the moment. Global variables can be of great help and sharing variables are essential for creating complex logic. Fortunately, we have a way around the global variable issue. We can use the Get FSM actions in FSM objects to get access to other FSM objects which have the variables we are interested in. The flowcharts explain the concept of both the Global variables and our alternative Now we will learn how we can do this in Playmaker. First, make 2 empty Game objects and name them FSM A and FSM B. This tutorial is just a proof of concept therefore it will be very basic. I have selected FSM A and added a FSM in it. I then create a variable called “Variable X” and select its type as float. Then, select FSM B and add a FSM in it. Add the action “Get FSM Variable” to it. Since “Get FSM variable” action needs a game object within FSM component in it to retrieve a variable, we pass FSM A object into the action. In FSM B, create a variable with the same name and type so that we can access the value of variable from FSM A. Now add variable X in store value. Once this is done, whatever the value of Variable X is in FSM A, it will get duplicated into Variable X of FSM B. And that is how we can share variables. The type of variables range from INT to vector3. Different actions will get us different types of variables. For eg, we can get a Vector3 variable by using the “Get FSM Vector3” action. Here's a video tutorial to help you understand the concept. To watch this tutorial in URDU/HINDI, please click here.

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

Ryohei Watanabe

Ryohei Watanabe

VR Inside元創刊編集長。Psychic VR Labが提供するVRクリエイティブプラットフォーム「STYLY( https://styly.cc/ )」に惚れ込み、2018年1月よりChief Media Officerとして同社へ移籍。

Share this article

Shares
Facebook Twitter Google+ Pinterest hatebu

About STYLY

STYLYは、VR空間を駆使した新たな表現・体験を生み出せるクリエイティブプラットフォームです。 STYLYを活用することで、コンセプチュアルなショップ空間やインスタレーション、ギャラリーなど クリエイターのイマジネーションを際限なく表現した多彩な空間を構築できます。 またその空間を通じて、今までの現実では成し得なかった体験をインターネットの世界へシェアすることができます。
 

Unity

Unityで制作されたコンテンツをお持ちの方へ
Unityシーンアップロード機能を活用すれば簡単にVR化が可能に!

Click here

×