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]
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:


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!

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!

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

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 :)

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

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:

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]