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.


Topics - Maart

Pages: [1] 2
1
PlayMaker Help / get fsm array size (SOLVED)
« on: March 02, 2021, 03:55:23 AM »
I have an array and I want to count the size (number of entries) in it.
is there no action for this?

2
PlayMaker Help / SOLVED Access component from spawned object
« on: November 28, 2020, 07:58:40 AM »
Hi i need some help trying to do the following.
I spawn a prefab using create object. This object has a (textmesh) component that I want to manipulate. Simce it's a spawned object I cannot use something like set property from scene. I can create an object variable that holds the textmesh component. How do I assign it to the created prefab? I vaguely remember using something like set component,in the past, I can't seem to find it. Is it removed or is my mind playing tricks on me?



SOLVED
Nevermind I found the solution trough the actions "Get Component" and "set property" and creating an unityobject variable and setting it to the right ObjectType

3
PlayMaker Help / Get object from asset bundle[SOLVED]
« on: January 19, 2020, 07:39:22 AM »
Hi I just started to try out asset bundles. I downloaded a package from github.
I can load bundles and load a gameobject from it using the code below.
How can I load a different type of object from the bundle? like a texture?
is it possible to convert the script below to accept the "object" variable and set it to the type I need?

thanks


// (c) Copyright HutongGames, LLC 2010-2017. All rights reserved.

using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
    [ActionCategory("Asset Bundle")]
    [Tooltip("Load Asset from Asset Bundle.")]
    public class LoadAssetGameObject : FsmStateAction
    {
        [Tooltip("Name of the gameobject to load from the asset bundle, as a string.")]
        public FsmString AssetName;

        [Tooltip("The asset bundle containing the gameobject.")]
        [UIHint(UIHint.Variable)]
        public FsmObject AssetBundle;

        [ActionSection("Events")]
        [Tooltip("Event fired on load success of asset gameobject.")]
        public FsmEvent loadSuccess;

        [Tooltip("Event fired on load failure of asset gameobject.")]
        public FsmEvent loadFailed;

        [ActionSection("Output")]
        [Tooltip("Game object found within the asset bundle.")]
        [UIHint(UIHint.Variable)]
        public FsmGameObject gameObject;

        [ActionSection("Options")]
        [Tooltip("Set to true for optional debug messages in the console. Turn off for builds.")]
        public FsmBool enableDebug;

        private AssetBundle _bundle;

        public override void Reset()
        {
            enableDebug = false;
            AssetBundle = null;
            loadFailed = null;
            loadSuccess = null;
            gameObject = null;
            AssetName = null;
        }

        public override void OnEnter()
        {
            loadBundle();
        }


        void loadBundle()
        {
            _bundle = (AssetBundle) AssetBundle.Value;
            gameObject.Value = _bundle.LoadAsset<GameObject>(AssetName.Value);

            // gameObject load fail
            if (gameObject.Value == null)
            {
                if (enableDebug.Value)
                {
                    Debug.Log("Failed to find gameObject in asset bundle.");
                }

                Fsm.Event(loadFailed);
            }

            // gameObject fetch success
            else
            {
                if (enableDebug.Value)
                {
                    Debug.Log("Asset bundle game object load success.");
                }

                Fsm.Event(loadSuccess);
            }
        }
    }
}

4
PlayMaker Help / set texture hdrp [SOLVED]
« on: August 21, 2019, 02:59:00 AM »
I want to set an albedo texture of a lit material in hdrp at runtime.
"the set material texture" action using _Maintex works great for a diffuse texture on a standard shader. any way I can use the same action in hdrp with a different named texture string? or do I need a specific action?



solved: use _BaseColorMap

5
Action Requests / arcore touch event
« on: January 13, 2019, 06:10:15 PM »
something in the arcore samples from google seem to block my touch events from being registered.

is there any way around this?

thanks

6
PlayMaker Help / Realtime model importer
« on: March 08, 2015, 05:59:00 PM »
Anyone here used any kind of realtime (fbx) model importer n unity and has gotten it to work with playmaker?

7
PlayMaker Help / Protecting code
« on: September 10, 2014, 11:59:17 AM »
Hi I have a project made with playmaker that I want to sell to a client, but I want to protect some of my code.

I would like my client to be able to open some playmaker scripts but not all of them.

Is this possible?

thanks
Maart

8
Action Requests / I need a way of reading ini files
« on: July 23, 2013, 06:35:32 AM »
I need a way of reading ini files with playmaker? has anyone got experience with this?


edit:
Haha, Ive found the answer in using wwwobject with file://c:/test.ini as the url works! now I can save it as a string! the problem I'm having is that it only saves the first line of the ini/text file.

9
Action Requests / equations
« on: April 28, 2013, 05:45:51 AM »
I would love to see an equation or function action, where i would get a couple of variables like A B & C, and write an equation like (A * B) - C and get the result stored in a variable.

or some thing like (A * B) = C and get a bool value result for true or not.

I know I can do this already using multiple actions but I think it's nice to be able to do this in a custom action.

10
Feature Requests / fsm naming gui
« on: March 19, 2013, 09:26:27 AM »


11
Feature Requests / Toggle lock fsm on/off with keyboard shortcut
« on: March 07, 2013, 12:34:31 PM »
I usually have the "lock" button turned on. But it is a hassle to select an fsm on another object. It would be cool to temporarily turn "lock" off while holding a certain keyboard key.

12
Action Requests / mouselook action for virtual joystick
« on: February 04, 2013, 11:16:36 AM »
could we get a mouselook action with float input instad of axis?
I'm not using the mouse, but a virtual joystick on screen.

13
PlayMaker Help / Wwwobject texture bug
« on: January 05, 2013, 09:12:31 AM »
Hi I need some help with this project to see what goes wrong.

Because of the klack of database support I use a simple textfile stored on dropbox
my project reads this textfile wich then is split in an aray.
it contains 3 items of data per row
songnumber- songtitle and an url to a texture.

the first time I use the url to download and assign the texture all goes well
the second time I do this no image is downloaded and a red questionmark is shown

get my project files here: http://db.tt/4EUTlJTb

my text file looks like this:
1*dit is een test*http://dl.dropbox.com/u/20740921/text_asset/12-10-22.jpg
*2*test2*http://dl.dropbox.com/u/20740921/text_asset/593a62569f47212963995fb119e59971.jpg''
'
I use the *sign to make a split in the textfile

14
Share New Actions / ConvertStringToFloat.cs
« on: January 02, 2013, 05:52:07 AM »
Code: [Select]
// (c) Copyright HutongGames, LLC 2010-2011. All rights reserved.

using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Convert)]
[Tooltip("Converts an String value to an float value.")]
public class ConvertStringToFloat : FsmStateAction
{
[RequiredField]
[UIHint(UIHint.Variable)]
public FsmString stringVariable;

[RequiredField]
[UIHint(UIHint.Variable)]
public FsmFloat floatVariable;

public bool everyFrame;

public override void Reset()
{
floatVariable = null;
stringVariable = null;
everyFrame = false;
}

public override void OnEnter()
{
DoConvertStringToFloat();

if (!everyFrame)
Finish();
}

public override void OnUpdate()
{
DoConvertStringToFloat();
}

void DoConvertStringToFloat()
{
floatVariable.Value = float.Parse(stringVariable.Value);
}
}
}

15
Action Requests / wwwobject post
« on: January 02, 2013, 05:27:29 AM »
I would like to see a WWWForm "post" addon to the wwwobject
so we would be able to upload data to a server

Pages: [1] 2