Search Unity

Bug Reading UnityEngine.Canvas.renderingDisplaySize crashes the editor

Discussion in 'Editor & General Support' started by Peeling, Oct 11, 2021.

  1. Peeling

    Peeling

    Joined:
    Nov 10, 2013
    Posts:
    443
    While writing a custom search that interrogates component properties, I discovered that if it queries

    UnityEngine.Canvas.renderingDisplaySize

    on a World Space canvas with no Event Camera (and maybe no canvas scaler?), you get a hard crash of the editor trying to dereference a null pptr.
     
  2. pineda100

    pineda100

    Joined:
    Feb 7, 2015
    Posts:
    2
    still happens on 2021.3.15
     
  3. tkk_bhi

    tkk_bhi

    Joined:
    Jan 31, 2020
    Posts:
    2
    and still in 2022.3. In Linux.