playMaker

Author Topic: OnEnable & OnDisable function  (Read 2110 times)

3d_Artist1987

  • Beta Group
  • Full Member
  • *
  • Posts: 157
OnEnable & OnDisable function
« on: June 22, 2015, 07:57:50 AM »
Hi,

How to do below code in playmaker?



void OnEnable()
{
      button.transform.localPosition = postioon1;
}
   
   void OnDisable()
{
      button.transform.localPosition = postioon2;
}




Dev

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: OnEnable & OnDisable function
« Reply #1 on: June 23, 2015, 08:42:03 AM »
Hi,

 you can't do anything on disable within PlayMaker afaik.

There is no point in moving a disabled gameobject, can you explain what you are after?

 Bye,

 Jean