Posts: 64
Threads: 11
Joined: Dec 2019
Hi, I'm trying to figure out how to setup Playmaker to work with Curvy and there are some problems.
It says that I should put the proxy script on an object but when I do an orange box pops up saying this event is not implemented on target. I'm not sure what that means and I don't know what the 2 target variables should point at or what the event line should say. Trying to manually point to a FSM does nothing.
Also must this script be on any object that I want to do stuff with through Playmaker? What if I use the SetProperty action to manually change let's say the position or speed etc, will that cause problems?
Posts: 2,147
Threads: 95
Joined: Jun 2017
Hi,
The compilation error you posted about earlier might be the reason for this issue. First let's fix the compilation error, and then come back to this.
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Posts: 64
Threads: 11
Joined: Dec 2019
After updating the scripts this issue is still the same.
Posts: 2,147
Threads: 95
Joined: Jun 2017
12-27-2019, 10:51 PM
(This post was last modified: 12-27-2019, 10:52 PM by _Aka_.)
(12-27-2019, 09:32 PM)Lupp_ Wrote: After updating the scripts this issue is still the same. 
Hi,
I will look at this this weekend. But just to make sure: did you get the playmaker curvy examples in the ecosystem? If not, take a look at them it might help.
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Posts: 64
Threads: 11
Joined: Dec 2019
Hold on, is the proxy script supposed to be on the object with the controller or on the object with the FSM?
Posts: 2,147
Threads: 95
Joined: Jun 2017
Hi,
I have to admit that my knowledge about Playmaker is not that deep (never used it for a real project). Here are the answers based on my limited knowledge:
(12-27-2019, 12:53 AM)Lupp_ Wrote: Hi, I'm trying to figure out how to setup Playmaker to work with Curvy and there are some problems.
It says that I should put the proxy script on an object but when I do an orange box pops up saying this event is not implemented on target. I'm not sure what that means and I don't know what the 2 target variables should point at or what the event line should say. Trying to manually point to a FSM does nothing.
Also must this script be on any object that I want to do stuff with through Playmaker?
Since you spoke about the orange box, I figured that you are speaking about the PlayMakerCurvyComponentProxy.
There is another proxy you will need, which is PlayMakerCurvySceneProxy.
Both proxies can be on whatever playmaker FSM object, as long as PlayMakerCurvyComponentProxy is set up correctly (in your case, both the Targets should be pointing to an object with a spline controller).
Then, just set the event in your FSM and you are good to go
You can see how this is done in the example scene PM30_CurvyAlignToSpline for example. Look for the FSM of the object ShipAlign0
(12-27-2019, 12:53 AM)Lupp_ Wrote: What if I use the SetProperty action to manually change let's say the position or speed etc, will that cause problems?
Not as far as I am aware of. Also, FYI, you can modify whatever property through this method:
https://answers.unity.com/questions/4255...value.html
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Posts: 64
Threads: 11
Joined: Dec 2019
Yep, now it works. I had to add the Curvy event to the FSM itself, then the orange box disappeared. Thanks for the help man.
Posts: 2,147
Threads: 95
Joined: Jun 2017
You are welcome
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.