Search Unity

Cannot apply changes made to RectTransform of world space canvas

Discussion in 'Prefabs' started by Deleted User, Feb 14, 2019.

  1. Deleted User

    Deleted User

    Guest

    When I set the canvas to screen space, Canvas automatically goes full screen and its resolution and scale will be set automatically. When I convert the canvas to world space, values remain but I can't apply them to prefab.
    Any ideas?
     
  2. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    Some of the root Transform properties are default overrides. See the documentation, header "Alignment is specific to Prefab instance".

    You can edit those properties in the Prefab by going into Prefab Mode and editing them there.
     
    Deleted User likes this.
  3. Deleted User

    Deleted User

    Guest

    Well, that's clever that you don't mark transform changes as overrides.

    Let me explain my use case. I want to have some full-screen world space canvases. My solution to get perfect canvas was to set the canvas to screen-space and then once the RectTransform values get calculated, I change it to world space and hit apply.
    Can I achieve the same thing in Prefab Mode?
     
  4. SteenLund

    SteenLund

    Unity Technologies

    Joined:
    Jan 20, 2011
    Posts:
    639
    I believe you can right-click on the default properties and apply them.

    We don't want the apply button to apply default override that is rarely what you want, but in some few cases you do want to apply default override and thus you should be able to do so through the context menu (that is if the fix has landed in 18.3)
     
    BradyIrv and (deleted member) like this.