Search Unity

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,911
    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,911
    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,911
    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!