playMaker

Author Topic: Unity doesn't save changes made with Array Maker  (Read 348 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 648
    • View Profile
    • Homepage
Unity doesn't save changes made with Array Maker
« on: January 03, 2018, 07:29:59 PM »
Hi!

I suddenly got a problem with Array Maker. When I add new items in an Array List in the Inspector window and then save the scene, when I then load the scene again, the changes I did are not saved. It will not save the changes. It saves other changes I do in Unity and Playmaker, but not Array Maker.

Does anybody else have this problem or can help me to solve this?

Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Rabagast

  • Hero Member
  • *****
  • Posts: 648
    • View Profile
    • Homepage
Re: Unity doesn't save changes made with Array Maker
« Reply #1 on: January 04, 2018, 02:54:24 PM »
It still doesn't save any changes I make in Array Maker.
Any help, please?
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12539
  • Official Playmaker Support
    • View Profile
Re: Unity doesn't save changes made with Array Maker
« Reply #2 on: January 05, 2018, 04:04:59 AM »
Hi,

 what version of Unity, PlayMaker and ArrayMaker are you using?

Are you sure you are not editing an instance of a prefab that then gets reverted or something?

 Bye,

 Jean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2531
    • View Profile
    • jinxtergames
Re: Unity doesn't save changes made with Array Maker
« Reply #3 on: January 05, 2018, 06:19:03 AM »
Hi,
Can you try moving the objects position (or rotation/scale) where the array proxy is in, move it back and then save.

Rabagast

  • Hero Member
  • *****
  • Posts: 648
    • View Profile
    • Homepage
Re: Unity doesn't save changes made with Array Maker
« Reply #4 on: January 05, 2018, 06:47:42 AM »
Hi!

Quote
what version of Unity, PlayMaker and ArrayMaker are you using?

I use Unity 5.6.1, Playmaker 1.8.5. I also tried to update ArrayMaker from the Ecosystem. Where can I find the version number?
I got some problems with TextMesh Pro in Unity 2017.1 and 2017.2.
That's why I don't want to update.

Quote
Are you sure you are not editing an instance of a prefab that then gets reverted or something?

I don't have any prefab of that game object. But I tried to create a brand new game object, and add an Array to it. Then I add some float values. I saved the scene. When I load the scene again, the new game object with the Array and all the values where saved. When I changed the float values in the Array List, it didn't save.

Quote
Hi,
Can you try moving the objects position (or rotation/scale) where the array proxy is in, move it back and then save.

This was very strange. When I change the values in the Array List, and then move the object a bit, then it will save the changes, but I need to move the object every time I do some changes. Strange. Did you also experience this djaydino, Since you gave me this idea? :)

But why? Can it be a bug or something?
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2531
    • View Profile
    • jinxtergames
Re: Unity doesn't save changes made with Array Maker
« Reply #5 on: January 05, 2018, 06:56:53 AM »
Hi.
Yes i have, for some reason it does not save the variables sometimes if nothing changed to the object.

If you download from the ecosystem you should always get the latest version btw.

@jean
Maybe something to do with 'set dirty'
I remember i had similar issues before on the 'Packager'

Rabagast

  • Hero Member
  • *****
  • Posts: 648
    • View Profile
    • Homepage
Re: Unity doesn't save changes made with Array Maker
« Reply #6 on: January 05, 2018, 08:15:49 AM »
So probably it can be a bug in ArrayMaker? But I can't remember I always had this problem in this project, but I think I got the problem in another project some time ago.

Well, at least it save the changes as long as I remember to move the object a bit before I save the scene. :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12539
  • Official Playmaker Support
    • View Profile
Re: Unity doesn't save changes made with Array Maker
« Reply #7 on: January 09, 2018, 03:34:59 AM »
Hi,

 uhm, let me fix this...

 Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12539
  • Official Playmaker Support
    • View Profile
Re: Unity doesn't save changes made with Array Maker
« Reply #8 on: January 09, 2018, 03:38:41 AM »
Hi,

 Ok, I can't reproduce this... which version of Unity are you using?

 Bye.

 Jean

Rabagast

  • Hero Member
  • *****
  • Posts: 648
    • View Profile
    • Homepage
Re: Unity doesn't save changes made with Array Maker
« Reply #9 on: January 09, 2018, 06:13:24 AM »
Quote
Hi,

Ok, I can't reproduce this... which version of Unity are you using?

I'm using Unity 5.6.1 and Playmaker 1.8.5.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12539
  • Official Playmaker Support
    • View Profile
Re: Unity doesn't save changes made with Array Maker
« Reply #10 on: January 12, 2018, 12:27:03 AM »
Hi,

 I just can't repro this, this is odd. what data type do you use in that array? is the array or the hashtable?

 Bye,

 Jean

Rabagast

  • Hero Member
  • *****
  • Posts: 648
    • View Profile
    • Homepage
Re: Unity doesn't save changes made with Array Maker
« Reply #11 on: January 13, 2018, 02:30:14 AM »
Hi,

 I just can't repro this, this is odd. what data type do you use in that array? is the array or the hashtable?

 Bye,

 Jean

I didn't have this problem until recently. I remember I had this problem one time before. So normally it works fine, so I don't know how you can solve it when it comes so randomly.

I use Game Object and Float in my Arrays. And I use Array List and not Hashtable.

I made a video, so you can see the problem.

https://www.youtube.com/watch?v=RdRcIHxHDSs&feature=youtu.be
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2531
    • View Profile
    • jinxtergames
Re: Unity doesn't save changes made with Array Maker
« Reply #12 on: January 13, 2018, 09:01:04 AM »
Hi.
I made a repo for Jean, and the issue is actually not random.

He can repo it now and is looking for a solution.

In the top bar from unity you can see this :



But when you change something in the hierarchy you will see this :



Which means that unity saw that something has changed and you can save your scene.

Now try saving you scene and then change some values on the array list.
You will see that there is no star.

So if you would reload the scene or close unity and reopen, the changes will not be saved.

Rabagast

  • Hero Member
  • *****
  • Posts: 648
    • View Profile
    • Homepage
Re: Unity doesn't save changes made with Array Maker
« Reply #13 on: January 13, 2018, 11:22:42 AM »
Quote
Now try saving you scene and then change some values on the array list.
You will see that there is no star.

I can't see any star when I do some changes in the scene. I'm using Mac. Maybe there is no star on Mac when I do some changes.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2531
    • View Profile
    • jinxtergames
Re: Unity doesn't save changes made with Array Maker
« Reply #14 on: January 13, 2018, 12:00:29 PM »
Hi,
Aw kk.
I am on pc, indeed this might be different... i can't test as i don't have a mac (yet)

but the concept is still the same.
When you recently saved your scene or when you just loaded your scene.
and only changed some values on the array it will not be saved (even if you pressed save)

And i just tested and noticed that for example the 'PlayMakerUGuiComponentProxy' has this problem also.

Repo :

Place the 'PlayMakerUGuiComponentProxy' on (for example) a 'Button'
Then save the scene.
Then do some changes on the 'PlayMakerUGuiComponentProxy' component.
Then Save.
Then Reload scene.

Result changes are gone.(Tested on pc, unity 2017.3, PM 1.8.6)