Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Canvas size changes at editor load up

Discussion in 'Editor & General Support' started by MarkoHazel, Jun 2, 2020.

  1. MarkoHazel

    MarkoHazel

    Joined:
    Apr 5, 2020
    Posts:
    15
    For some reason my canvas for my scenes gets smaller each time I jump into the unity editor making my game objects fall out of the canvas area that were near the inside of the edge prior. Is there a setting to fix this/why is this happening? Any help to resolve this issue would be a great help!
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,960
    Do you have any [ExecuteInEditMode] scripts or other Editor scripts?
     
  3. MarkoHazel

    MarkoHazel

    Joined:
    Apr 5, 2020
    Posts:
    15
    I don't think so. I've done all the coding from scratch and they're only executed at run time.
     
  4. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,960
    Check your canvas. Is there a weird setup like multiple Canvas Scalers?
     
  5. MarkoHazel

    MarkoHazel

    Joined:
    Apr 5, 2020
    Posts:
    15
    Seems like there's only one...

    upload_2020-6-2_9-38-40.png
     
  6. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,960
    Does changing the UI Scale Mode on the Canvas scaler have any effect?

    Hopefully someone else can chime in. I'm not sure from the information provided. Good luck.
     
  7. MarkoHazel

    MarkoHazel

    Joined:
    Apr 5, 2020
    Posts:
    15
    I've noticed the scale of the canvas is constantly changing, not the actual size itself. As you can see in the photo the scale is X,Y 0.441666, it's now 0.122889!