Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Simple animation on a world canvas.

Discussion in 'Animation' started by Kulgann, Apr 18, 2016.

  1. Kulgann

    Kulgann

    Joined:
    Oct 17, 2014
    Posts:
    15
    Hi there, I have this very strange problem when adding a animation to a world space canvas. The whole canvas object and its children(who are buttons and 1 image) are enabled/disabled from script when the correct conditions are met. The thing is that without a animator component it works great. But when I add the animator and animation everything seems to work but the UI elements themselves do not seem to render. The animation is very simple simply scaling the canvas from 0 to 1.2 and then to 1.

    I resolved the issue by changing the animation to scale from 0.1 insted of 0. Now it works correctly. I'm just wandering if this is a bug or I simply dont understand some fundamental thing ?
     
  2. catherineproulx

    catherineproulx

    Unity Technologies

    Joined:
    Apr 24, 2014
    Posts:
    16
    Which version are you using?

    I've tested a simplified scenario of what you describe in 5.4b15, and it seems to work fine. We fixed several issues related to RectTransforms in 5.3, so maybe it's just a question of upgrading to the latest version of either 5.3 or 5.4 beta.

    If that still doesn't work, can you try to simplify your case as much as possible (sometimes it's enough to figure out what was wrong) and report a bug with your data?
     
  3. Kulgann

    Kulgann

    Joined:
    Oct 17, 2014
    Posts:
    15
    I'm using 5.3.4f1 and I managed to replicate it using a simplfied manner. I will make a clean project containing only this bug and send a report.