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

Pages: [1]
1
PlayMaker Help / Load JSON data in Scripr List and want to use in FSM
« on: March 15, 2021, 06:59:15 PM »
Hi,

I load a JSON file with data (using Newtonsoft.Json) to create my in game map screens in a script List.

Code: [Select]
public List<ScreenData> screens;
When I run the game I can see the data in my "MapManager" GameObject populated on the fly.

Then I want to use a FSM to access the "screens" List instance, take and item in the list and use the data to draw a screen creating prefabs based on that data.

A sample data in my JSON for a screen is:

Code: [Select]
       {
            "id": 6,
            "blocks": [
                {
                    "content": "W",
                    "position": {"x": 0, "y": 0, "z": 0}
                },
                {
                    "content": "B",
                    "position": {"x": 2, "y": 0, "z": 2}
                }
            ]
        }

So inside the item I have an Array of "Block" (another class) with content and position. If I have a "W" I'll create a prefab assigned to that W, if is "B", the prefab for "B"

How Can I do this?

Thanks in advance!


2
Hi I'm using

- Unity 2020.2.7f1
- Playmaker 1.9.1.p4
- Probuilder 4.5.0

I see playmaker has some incompatibilities and for example moving objects in unity stop work.

then I get the following problems:

Assets/PlayMaker/Actions/UI/Components/PlayMakerUiEndEditEvent.cs(4,7): error CS0246: The type or namespace name 'TMPro' could not be found (are you missing a using directive or an assembly reference?)

Assets/PlayMaker/Actions/UI/Components/PlayMakerUiIntValueChangedEvent.cs(4,7): error CS0246: The type or namespace name 'TMPro' could not be found (are you missing a using directive or an assembly reference?)

Assets/PlayMaker/Actions/UI/Components/PlayMakerUiEndEditEvent.cs(18,16): error CS0246: The type or namespace name 'TMP_InputField' could not be found (are you missing a using directive or an assembly reference?)

Assets/PlayMaker/Actions/UI/Components/PlayMakerUiIntValueChangedEvent.cs(18,16): error CS0246: The type or namespace name 'TMP_Dropdown' could not be found (are you missing a using directive or an assembly reference?)

What versions are safe to use, or where I can read about it?

thanks

3
Hi, I recently buyed PlayMaker from the web, but I think it was not a good decision since I can't see the bundle inside my unity asset store account, so it was more easy to access and download upgrades. Can I have this integration in some way?

Thanks

Pages: [1]