playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hayato

Pages: [1] 2
1
Share New Actions / Re: Cinemachine Support [ECOSYSTEM] [MAY 2020]
« on: June 02, 2020, 12:04:46 AM »
Hi,

 these are accessible already via Free Look Camera Set Yaxis Settings and Free Look Camera Set Xaxis Settings.

however, I think you need to set it up properly, that is you need to prevent the regular input to affect these values, so you need the CinemachineCoreGetInputTouchAxis component on the main camera to disable inputs.

Make sure you properly set up the freelook, else the x axis may be locked.

Bye,

 Jean

Opps ! I found I just failed to update latest version of Cinemachine (MAY 2020) package and using a old one , after I upgrade ecosystem 0.6.6 to 0.6.8 it success to upgrade Chinemachine package , then I have see the latest version of FreeLookCameraSetXaixsSettings do have Value and InputValue paramaters.
 
I'm sorry for my thoughtless and thank you for the hint !

2
Share New Actions / Re: Cinemachine Support [ECOSYSTEM] [MAY 2020]
« on: June 01, 2020, 09:01:13 PM »
Hi Jean,

Could you add Value or InputAxisValue controls with FreeLookCameraSetXaxisSettings and FreeLookCameraSetYaxisSettings ?
It's useful  with some situation for example move camera angle depend on phone orientation.

Please take a look with it.
Thank you !

3
PlayMaker Help / Re: How do I send custom data to PlayMakerFSM?
« on: April 14, 2020, 04:00:52 AM »
Hi,

 it's then likely because you are not including the namespace for it at the top of your script:

using HutongGames.PlayMaker.Actions;


normally your ide where you edit scripts should give you some hints that it is necessary and even do it for you. I use Rider myself and did not look back.

Bye,

 Jean

Like some of PlayMaker users ,I don't fimiliar with both C# and IDE , even don't know clearly about namespace meaning before the problem ,that's the reason why I want to get a full sample code to learn how to use the function .

Thank you for make sure that my code is correct , or in my own knowledge it's impossiable to go to the next step that IDE adventitiously help me.  :)


4
PlayMaker Help / Re: How do I send custom data to PlayMakerFSM?
« on: April 10, 2020, 03:32:23 AM »
SetEventProperties.properties["My Value"] = something;

I might be wrong here but this sounds a lot like a Hash Table pair, name:value.
Which makes me wonder, out of curiosity, if I missed something here, like being able to directly input a key and its value into an event instead of having to save the name as a string on one side, and its associated var on the other.

Do you mean ways like the image attached below ?

5
PlayMaker Help / Re: How do I send custom data to PlayMakerFSM?
« on: April 09, 2020, 02:06:54 AM »
Okay finally I got the answer,  it do not need :
Code: [Select]
//using HutongGames.PlayMaker;
//using HutongGames.Utility;

but need to add  :
Code: [Select]
using HutongGames.PlayMaker.Actions;
The full sample code send a int with key that work to me is:

Code: [Select]
using UnityEngine;
using HutongGames.PlayMaker.Actions;

public class SendToFSM : MonoBehaviour
{
    public PlayMakerFSM fsm;
    public int AAA;
   
    void Update()
    {
        // Set variables with key
        SetEventProperties.properties["DATA1"] = AAA;

        // sending an event
        fsm.SendEvent("myEvent");
    }
}

The function is really powerful ! : )

6
PlayMaker Help / Re: How do I send custom data to PlayMakerFSM?
« on: April 09, 2020, 01:41:30 AM »
Hi,

 Do you have the SetEventProperties action in your project?

Bye,

 Jean

Hi jean,

Yes, I install PlayMakerUtils package via ecosystem and both SetEventProperties and GetEventProperties can see in actions broswer .

---
PlayMaker: 1.9.0.p20
Unity: 2019.3.7f1
Build Target: StandaloneWindows

7
PlayMaker Help / Re: How do I send custom data to PlayMakerFSM?
« on: April 03, 2020, 10:21:12 AM »
Hi,

 yes, that's right, that's all you need.

 in fsm, you use GetEventProperties and get the value for key "DATA1"

but if you want to send a value every update, then you are better off setting an FsmString on that fsm directly, since you already have a pointer to it.

Bye,

 Jean

The code what I write have error in console , it says:

Code: [Select]
Assets\SendToFSM.cs(13,9): error CS0103: The name 'SetEventProperties' does not exist in the current context
So I think it's not correct , but don't know how to correct it .
Can you give more hint about it ?
Thank you !

8
PlayMaker Help / Re: How do I send custom data to PlayMakerFSM?
« on: April 03, 2020, 12:11:10 AM »
Hi

I know it need to fire a event , but I'm not fimilar with C# so I can not figure out how to writre the script correctly .
So it will help if there is a sample code , or can you help me correct the code below to send a int ?

Code: [Select]
using UnityEngine;
using HutongGames.PlayMaker;
using HutongGames.Utility

public class MyBehaviour : MonoBehaviour
{
    public PlayMakerFSM fsm;
    public int AAA;

    void Update()
    {
        // i don't know how to use it
        SetEventProperties.properties["DATA1"] = AAA;

        // sending an event
        fsm.SendEvent("FireEvent");
    }
}



9
PlayMaker Help / Re: How do I send custom data to PlayMakerFSM?
« on: March 30, 2020, 04:18:51 AM »
Hi,

 What is it that doesn't work on your end based on what I wrote?

Bye,

 Jean

In the https://hutonggames.fogbugz.com/default.asp?W127 section I don't found any example using :
Code: [Select]
SetEventProperties.properties["My Value"] = something;Please help me to give a hint if there is a example for it there.

Or can you just write a short example code for example how to send a int value with a key ? (And we can recive the value using GetEventProperties action)

Thank you !

10
PlayMaker Help / Re: How do I send custom data to PlayMakerFSM?
« on: March 27, 2020, 05:59:01 AM »
Hi,

Is there a sample code about SetEventProperties.properties now ?

11
When I using some action like TriggerEnter or Translate with FixedUpdat or LateUpdate . They work fine in editor test play , but don't work in WebGL build .
That is not a always case , seems will only happen in a complex scene , if I creat a new scene in the same project and simple to test those actions , the build just work well in simple scene !

I have found a dirty solution for it . To add the component that actions needed manually .


But I would like to know is there a way to avoid the problem , because it hard to check every action if it work well  or not in long-time building WebGL builds.

I'm using 2018.3.3f1 with playmaker 1.9.0p6 , but the problem have happen some times before.
By the way, I have tried Linker Wizard , doesn't help about it .

12
This is a bug in EnumPopup in Unity 2018.3.
I've submitted a bug report to Unity.
There might be a workaround, but for now, I think you'll have to comment out the Descriptions in the Valve library :(

Saddly if I comment out the Descriptions will make the program error .
But I can still comment out them only when I edit with playmaker , and then get them back.
Hope there can be a fix about it soon !
Thank you for the answer. :)

13
Thank you for testing , it work fine as the enum just like you did .


And if I add a "/" in Description here , the value will not show in the options.


I meet this enum from SteamVR , can you help to support "/" in Description ?
https://github.com/ValveSoftware/steamvr_unity_plugin/blob/master/Assets/SteamVR/Input/SteamVR_Input_Sources.cs
Thank you !

Hi,

 odd, it all works fine here:

Can you try with another enum, like I did?

Bye,

 Jean

14
When creat Enum Variable and set to a Enum Type that has Description. (ex.  SteamVR_Input_Sources )
The Variable value locked as 1st enum value and can not switch to others.
And the value shows wrong as the Description of 1st enum value.

See the screenshot below :

Enum Variable shows wrong and can't switch.

If hide the Descriptions the Variable works fine.



===

Unity Info:
Unity Version: 2018.3.0f2
Playmaker Version: 1.9.0.p5
BuildTarget: StandaloneWindows64

System Info:
OS: Windows 10  (10.0.0) 64bit
Processor: Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz
System Memory: 16336
Graphics Device: NVIDIA GeForce GTX 980 Ti

15
PlayMaker Bug Reporting / Re: 1.9.0 Issue
« on: May 31, 2018, 10:01:40 AM »
I got the same problem when getting last version of DataMaker , too .
But it can fix by import "PlayMakerUtils" package in ecosystem or GitHub link.




Playmaker ver. 1.9.0, Ecosystem 0.6.1 Unity ver. 2018.1.0f2

Pages: [1] 2