Search Issue Tracker

Fixed in 5.4.0

Votes

32

Found in

4.5.2f1

Issue ID

624764

Regression

No

Overridden virtual functions cannot be used as Animation events

Animation

-

To Reproduce:

1.Write an overridden virtual function just like Event4() in Arrow.cs and ArrowBase.cs, in the attached project.

2. Create a new event on the ScaleUp animation, which is being played on the Arrow object, notice that 'Event4' which overrides a virtual function cannot be used as an event handler (Event1 & 2 from the same script work fine).

3. It's possible to workaround this by first assigning the function in the event and then changing in to an overridden virtual function (as Event3 in this case) and it seems to work fine.

Repro: 4.3.4f1, 4.5.2p2, 5.0.0a19

Comments (12)

  1. A81f63f99f2b34e33b919c6203327358?d=mm

    phasiclabs

    Apr 23, 2015 16:02

    Another workaround is to use another function that can be selected, then modify the anim file in a text editor to use the correct function (assuming you serialize assets as text).

  2. A81f63f99f2b34e33b919c6203327358?d=mm

    phasiclabs

    Apr 23, 2015 15:55

    Yes, this is very annoying. The workaround above does work, but it's a bit impractical.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.