You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I trying to use Signal with the last version of Unity but the editor is not showing my gameobject function when parameters are added to it. I followed the tutorial found at http://unitypatterns.com/resource/signals and my code is right, apparently. Any idea of whats can be happening?
The editor are showing the gameobject functions with no parameters and they are working fine.
If the signal previously had a no-parameter signal assigned, and you added
the parameter later, unity still might have the firsts one serialized.
Try this: mark the signal variable as [NonSerialized], return to the
editor, let it refresh (to clear any serialized data) then go back and
delete the [NonSerialized] attribute, see if that fixes the problem.
I trying to use Signal with the last version of Unity but the editor is
not showing my gameobject function when parameters are added to it. I
followed the tutorial found at http://unitypatterns.com/resource/signalsand my code is right, apparently. Any idea of whats can be happening?
The editor are showing the gameobject functions with no parameters and
they are working fine.
Thanks
using UnityEngine;using System.Collections;
public class BoardController : MonoBehaviour{
void Start ()
{
}
Activity
UnityPatterns commentedon Jan 23, 2014
If the signal previously had a no-parameter signal assigned, and you added
the parameter later, unity still might have the firsts one serialized.
Try this: mark the signal variable as [NonSerialized], return to the
editor, let it refresh (to clear any serialized data) then go back and
delete the [NonSerialized] attribute, see if that fixes the problem.
On Thursday, January 23, 2014, Carlos Correia notifications@github.com
wrote:
carlosgc commentedon Jan 24, 2014
On Thu, Jan 23, 2014 at 2:47 PM, UnityPatterns notifications@github.comwrote:
I didn't use the [NonSerialized] attribute, instead I removed the signal
variable, saved the project, added it back and it worked.
Thank you for the tip.
Carlos H. G. Correia
Caique
Gaudium et Spes [Alegria e Esperança]
Fique na Paz
UnityPatterns commentedon Jan 24, 2014
Ah yes, that would achieve the same effect. Glad you got it! I haven't
thought of a good way to prevent that happening.
On Friday, January 24, 2014, Carlos Correia notifications@github.com
wrote: