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.

Bug Weird Worldspace Sub-Canvas Rect Transform behaviour

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

  1. Dave458854


    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.