playMaker

Author Topic: desactivate from another scene  (Read 549 times)

stigma

  • Full Member
  • ***
  • Posts: 178
desactivate from another scene
« on: August 30, 2021, 11:47:34 AM »
Hi,
how to desactivate an object from another scene.
I have an asset (Sound Manager Pro) that is in a startup scene and I would like to remotely deactivate it from another scene. Is it possible ?
Thanks

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: desactivate from another scene
« Reply #1 on: August 30, 2021, 02:11:31 PM »
Hi.
there are a few ways.

you can place the boject in a global variable, you can use 'find game object' but if you do, do it at start when loading a scene.

you can set a 'Data' object with a 'Data' fsm then set this as global and the you can set several variables there to reference.
This is useful and more efficient if you have more variables to access across scenes.

stigma

  • Full Member
  • ***
  • Posts: 178
Re: desactivate from another scene
« Reply #2 on: September 10, 2021, 12:03:30 PM »
Thanks !