Question by
Mikhail94 · Jun 01, 2021 at 04:54 PM ·
animationcanvasraycastinguser interface
Raycast target does not work in animation
I have Image in Canvas that I change transparency through animation. In animation I change "Raycast target" field so I can interact with buttons at the animation end.
Field changes in inspector, but has no effect - I can press buttons behind when animation hasn't finished yet and field "Raycast target" is "True".
When I do not use animation and change field directly through script - everything works as expected.
Scene:
Canvas
|-Buttons
|-Image (Foreground, Animated)
Image:
Animation:
Unity 2020.3.8.f1 LTS
снимок-экрана-2021-06-01-194833.png
(23.2 kB)
снимок-экрана-2021-06-01-194730.png
(42.0 kB)
Comment