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 - looi

Pages: 1 [2]
16
PlayMaker Help / Xml Select Nodes by Fsm String
« on: June 17, 2016, 05:25:48 AM »
Hello

I want to parse an XML from a URL and save it in a ArrayList.
I've done the first part, I got the XML with the action WWW Object and I'm saving it in a string.

Then, I want to parse it with the action Xml Select Nodes. I select Source selection: Use Variable. Then, it appears the dropdown list with all my strings, but I can't select any of them.

When I try to select a string from the list, In the Console appears this error:
Code: [Select]
ArgumentException: Object type HutongGames.PlayMaker.FsmString cannot be converted to target type: HutongGames.PlayMaker.FsmEvent
Parameter name: val
System.Reflection.MonoField.SetValue (System.Object obj, System.Object val, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoField.cs:133)
System.Reflection.FieldInfo.SetValue (System.Object obj, System.Object value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/FieldInfo.cs:150)
HutongGames.PlayMakerEditor.ActionEditor.DoVariableSelection (System.Object userdata) (at c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/ActionEditor.cs:2826)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, Int32 selected) (at C:/buildslave/unity/build/artifacts/generated/common/editor/GenericMenuBindings.gen.cs:122)

I've searched for this problem and I couldn't find solution here. In this case the problem is not in the variable itself, because I cannot choose any.
Running Unity 5.3.5f1, PlayMaker 1.8.1.f10 and last DataMaker in Ecosystem

Do you know why this may happen?

Thank you very much!

17
Oh Oh!

It was my fault, I was incorrectly using the variables inside the parsed string! I didn't understand what "Variable _0_" means but now I do!

Thanks to this magnífic video:
https://www.youtube.com/watch?v=eB_E4embTvw

18
Hello!

I'm using the action Xml Select Single Node action, which is in the DataMaker package. I am using a xml file as source.

When I do the action with an xPath Query introduced by text it works fine, but the problems comes when I want to set the xPath Query by an string variable. It just don't allow me to select any string. I mean, they appear in the dropdown, but when I select one, the input remains in "None".

If I try to do it at runtime, it appears this error in the console:

"ArgumentException: Object type HutongGames.PlayMaker.FsmString cannot be converted to target type: System.Boolean
Parameter name: val
System.Reflection.MonoField.SetValue (System.Object obj, System.Object val, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoField.cs:133)
System.Reflection.FieldInfo.SetValue (System.Object obj, System.Object value) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/FieldInfo.cs:150)
HutongGames.PlayMakerEditor.ActionEditor.DoVariableSelection (System.Object userdata) (at c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/ActionEditor.cs:2779)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, Int32 selected) (at C:/buildslave/unity/build/artifacts/generated/common/editor/GenericMenuBindings.gen.cs:122)"

So I don't know if I am missing something or what, but I can't find why it happens. I've also tried to set it as "None" and then add more variables, but it just don't work...

Have somebody been in this problem?

Thank you!

19
PlayMaker Help / Re: UnityEngine.Camera Object variable type?
« on: February 24, 2016, 07:57:57 AM »
Oooh! I didn't know it is possible to do that!

Thank you Dev!

20
PlayMaker Help / Create Render Texture at runtime?[SOLVED]
« on: February 24, 2016, 02:41:37 AM »
Hello

Is it posible to create a Render Texture at runtime with Playmaker?

I tried with Create Object, but It doesn't work as it is not a GameObject.

I need to asign one RenderTexture to each prefab camera instantiated, so I would like to create them at runtime. It is posible to do it with Playmaker, or I have to do it in a script?

Thank you :)

21
PlayMaker Help / UnityEngine.Camera Object variable type? [SOLVED]
« on: February 24, 2016, 02:30:38 AM »
Hello

I am instantiating a prefab around the game. This prefabs contains a camera. What I want to do is to asign a Render Texture to each instantiated cam. I have the GameObject in a variable, and what I would do is:

- Get Component. Save the camera component in an Object (UnityEngine.Camera) variable.
- Set Property > Tarjet Texture and asign it.

It is just what it is said in this post:
http://hutonggames.com/playmakerforum/index.php?topic=2791.msg12641#msg12641

My problem is that I can't find the UnityEngine.Camera Object type when I create a Object variable. Is it posible? Maybe I am doing something wrong?

Pages: 1 [2]