playMaker

Author Topic: Simple action not working in build but in the editor  (Read 899 times)

secondsight

  • Playmaker Newbie
  • *
  • Posts: 24
Simple action not working in build but in the editor
« on: April 12, 2023, 05:16:13 AM »
So, I have a simple camera zoom in/out action on button press. It works fin in unity but not in the build. All other playmaker actions are working, though.

Unity 2021.3 and latest playmaker version.

Any tips appreciated !

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Simple action not working in build but in the editor
« Reply #1 on: April 12, 2023, 06:35:27 AM »
Hi.
For which platform are you building?

What's the action name?

secondsight

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Simple action not working in build but in the editor
« Reply #2 on: April 12, 2023, 06:41:12 AM »
I´m building for windows 10.

Basically I set the fov variable of the camera and then use ease float to another variable on button press / release.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Simple action not working in build but in the editor
« Reply #3 on: April 12, 2023, 06:42:05 AM »
Hi.
With a dedicated action or a Get/Set Property action?

secondsight

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Simple action not working in build but in the editor
« Reply #4 on: April 12, 2023, 06:55:00 AM »
Set property (of the camera fov).

This is what I got:

https://i.imgur.com/IsrMszr.jpeg

I´m using the keypress to modify variables quite often. All others work also in the build, but this one does not.
« Last Edit: April 12, 2023, 07:15:08 AM by secondsight »

misterjuly

  • Sr. Member
  • ****
  • Posts: 335
Re: Simple action not working in build but in the editor
« Reply #5 on: April 12, 2023, 09:50:29 AM »
You might need the Linker Wizard. I think you can download it from the ecosystem browser. There is a video somewhere on this forum that can help you figure it out if you search linker wizard. I would provide a link, but I forget exactly where it is. Hopefully that helps.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Simple action not working in build but in the editor
« Reply #6 on: April 12, 2023, 01:57:51 PM »
Hi.
There should be a "Set Camera FOV" action that can replace your set property

secondsight

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Simple action not working in build but in the editor
« Reply #7 on: April 13, 2023, 02:32:57 AM »
You might need the Linker Wizard.

Thanks a bunch ! Never heard of that before.

secondsight

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Simple action not working in build but in the editor
« Reply #8 on: April 13, 2023, 02:35:55 AM »
Yes, I´m using the set camera fov now. Still a strange behaviour I think.
Thanks a lot for the help !

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Simple action not working in build but in the editor
« Reply #9 on: April 13, 2023, 06:52:37 AM »
Hi.
Well the problem with Get/Set properties is that its mirroring and there for unity build process does not know if that certain component is used.

Therefore you need to explicitly 'tell' unity to include that specific component to include in your build.

Linker wizard does that, during playmode it recognizes those actions and add it to a list file.

also  Get/Set properties are slower than dedicated actions, but you wont really notice unless you use 100s at the same time.

But its best to avoid using Get/Set Properties.
They are mainly designed for use with 3rd party scripts/assets.