playMaker

Author Topic: Instanced prefabs struggle to set correct values for new actions  (Read 1119 times)

agelvik

  • Beta Group
  • Playmaker Newbie
  • *
  • Posts: 46
Hey,
Trying to add new actions on a prefab, however existing Instanced prefabs struggle to update properly upon save. I need to revert the FSM values to get correct values on the latest additions.

Video:
https://www.dropbox.com/s/tcy4x407199cgl8/2022_07_09_00-49-11.mp4?dl=0

Unity 2020.1.14, PM 1.9.1
« Last Edit: July 11, 2022, 10:03:19 AM by agelvik »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7620
    • jinxtergames
Re: Instanced prefabs struggle to set correct values for new actions
« Reply #1 on: July 09, 2022, 07:13:05 PM »
Hi.
Check Overrides as i can see that the selected prefab is set a (Modified)

agelvik

  • Beta Group
  • Playmaker Newbie
  • *
  • Posts: 46
Re: Instanced prefabs struggle to set correct values for new actions
« Reply #2 on: July 11, 2022, 08:06:23 AM »
Hmm, check what exactly?
The way I use FSMs on prefabs is enable Input variables, and adjust these values based on what I need to happen.

I'm only adjusting the variables though, never adding new actions to instanced FSMs.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7620
    • jinxtergames
Re: Instanced prefabs struggle to set correct values for new actions
« Reply #3 on: July 11, 2022, 09:25:41 AM »
Hi.
Because of the exposed variables (if you change the default value) the fsm is overridden from the prefab.

There are 2 ways to fix, revert the prefab and set your exposed variables
and the update option (which can take long depending you how many prefabs you have).
For update you can find in the playmaker tab PlayMaker/Tools.
Just to be sure make a backup before update

agelvik

  • Beta Group
  • Playmaker Newbie
  • *
  • Posts: 46
Re: Instanced prefabs struggle to set correct values for new actions
« Reply #4 on: July 11, 2022, 12:33:27 PM »
I'm aware of the reverting options etc., but from a user perspective, what happens in the video I posted doesn't make sense... It feels like a weird bug when the states don't update properly when all I've done is tweak the input variables?

It normally works fine, but this sometimes happens at a seemingly random pace, so it's quite confusing.