playMaker

Author Topic: Array Set inconsistent experience  (Read 1055 times)

justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
Array Set inconsistent experience
« on: October 11, 2021, 11:38:51 AM »
I'm attempting to use Array Set.

First I create and array in the variables tab.  Give it a name and hit Add.
Defaults to Type Float.  "Size" field is visible down below.

If I deselect the array from the list and re select it, the "Size" field is missing.

If I go back to the Variables tab and set the type to Int or String for example, the array is no longer available in my set array action to pick.  This also occurs if I set the type before attempt to set it in the array set action as well.

It seems to only be available to pick in the array set action if i make a new array and not change its type. Only then will it show up in the list of arrays to use.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Array Set inconsistent experience
« Reply #1 on: October 11, 2021, 09:14:50 PM »
Hi.
Which Unity/PM version are you using.

Is it possible to make a short video or some picture how to repo :)

justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
Re: Array Set inconsistent experience
« Reply #2 on: October 12, 2021, 03:16:16 AM »
@djaydino

Here's a video I made showcasing the issue.
Playmaker 1.9.1
Tested in Unity 2019.4.28f1 , 2020.3.19f1 and Unity 2021.1.24f1

https://drive.google.com/file/d/1FNTWdzR9H0Kx0u7ozqb6N0g0gTrtNu8q/view?usp=sharing

« Last Edit: October 12, 2021, 03:37:37 AM by justifun »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Array Set inconsistent experience
« Reply #3 on: October 12, 2021, 07:02:43 AM »
Hi.
The exact Playmaker version you can find here :
Playmaker/Help/About Playmaker... :)


justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
Re: Array Set inconsistent experience
« Reply #4 on: October 12, 2021, 10:33:20 AM »
ah ok.  Its 1.9.1.p4


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Array Set inconsistent experience
« Reply #5 on: October 12, 2021, 01:07:29 PM »
Hi.
Try first updating to latest playmaker (i believe its 1.9.3p4 at the moment)

justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
Re: Array Set inconsistent experience
« Reply #6 on: October 12, 2021, 01:15:16 PM »
The package manager only has 1.9.1
and in the welcome screen of playmaker in editor when you do the install process it only installs 1.9.1.p4

How do I get 1.9.3?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Array Set inconsistent experience
« Reply #7 on: October 12, 2021, 01:25:28 PM »
Hi.
Is the update button not showing?

if not try to remove the install file.

This post can help locating the file :

https://forum.unity.com/threads/asset-store-download-folder.83620/

Remove the hutong folder.
then repopen package manager

justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
Re: Array Set inconsistent experience
« Reply #8 on: October 12, 2021, 03:42:43 PM »
Ok i've updated to 1.9.3p4 and the issue is still present.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Array Set inconsistent experience
« Reply #9 on: October 13, 2021, 05:27:00 PM »
When you select "Int" in the type dropdown, you're changing the type to Int not an Array of Ints. Because it's no longer an array, it doesn't show up in array actions. It's a little confusing because that type dropdown label is overloaded for Arrays to show the array type as well.

To change the array type, select it, then edit the Array Type.

justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
Re: Array Set inconsistent experience
« Reply #10 on: October 13, 2021, 07:25:52 PM »
Ah I see.  The default dropdown at the top says Array:Float when you make one, so i thought when i was changing that to INT that it was keeping it as an array.  I see that i need to change the dropdown at the bottom to change the array type.  Yeah its a bit confusing.

Thanks for helping sort it out.