Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: 3d_Artist1987 on June 22, 2015, 07:57:50 AM

Title: OnEnable & OnDisable function
Post by: 3d_Artist1987 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
Title: Re: OnEnable & OnDisable function
Post by: jeanfabre 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