animation event window bug ?

Hi.

I create an animation in project window, and then added it to a gameobject
I also created a lil script with a function in it:

void plop(GameObject g)
{
g.SetActiveRecursively(true);
}

Then i added an event on my animation and tried to edit it’s properties. This pops a window in wich i have to
choose a function.
I choose the plop function and then am asked for an Object as a parameter.
Here is THE problem. This Object field is absolutely unable to receive a GameObject as parameter.
Only asset can be dragged in ( wich is pretty useless indeed ).

How can this be solved ?

noone use anims in unity ?

8-O seems not !
well…

does anyone know where i could post questions to people knowing about unity ? I can imagine this is
an EXTREMELY ADVANCED question compared to those asking ‘how can i make my FPS ?’ but…
btw, i thought a community like this one was intended for collaboration among users…

if there’s still valuable people in this community, an answer would really be appreciated !

It does not accepts any instances, just direct values or assets. Open a Feedback entry or search for it and if you can find a similar entry, vote for it here http://feedback.unity3d.com

Hi Sarper !

1st of all, thansk for taking the time to answer :wink:
It’s too bad it don’t accept Instances. I guess there’s a reason for this, making events mostly useless during the game execution.
Hopefully, i found a thick making it usefull and with this workaround, i can now play with gameobjects as parameters :slight_smile:

regards.