Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Weird Worldspace Sub-Canvas Rect Transform behaviour

Discussion in 'UGUI & TextMesh Pro' started by SeveredSockPuppet12, Aug 25, 2022.

  1. SeveredSockPuppet12


    Jan 14, 2021
    I am developing an app in Unity which uses World Space Canvasses as the main interaction points.

    To increase performance, I have moved the interactive bits of the Canvasses to separate sub-Canvasses.

    These are usually positioned at 0,0,0 with a scale of 1,1,1 and no rotation (to match the positioning and scaling of the parent Canvas).

    For some reason, sometimes when I start the project, I find it has set the sub-Canvasses to ridiculous values, cancelling out all of the positioning, scaling and rotation provided by the parent Canvas as well as setting the pivot to the bottom left (essentially resulting in an astronomically huge sub-Canvas).

    Screenshot 2022-08-25 112217.png

    Does anyone know a solution to this?

    Edit: How to reproduce:
    - Create a world space canvas with desired transfrom
    - Create a subcanvas.
    - Disable the parent Canvas
    - Save and restart Unity
    - the sub-Canvas scaling/positioning/rotation is off
    Last edited: Aug 25, 2022
  2. spiney199


    Feb 11, 2021
    Wrong sub forum mate.