Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[Bug v0.6.6][WebGL Editor] TextMeshPro shader not initialized when instantiating UI prefab

Discussion in 'Addressables' started by MaskedMouse, Mar 7, 2019.

  1. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,091
    Case 1134615

    We have a prefab that we load after scene load using the
    RuntimeInitializeOnLoadMethod

    This prefab contains a TMP UGUI Text but when in the editor the text shows up as pink squares.
    I've just built the WebGL project but in the built version it does show it normally.

    So it seems to be an editor only bug using the addressable assets in packed mode.
     
  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Thanks for letting us know and creating a case. We'll look into it.
     
    MNNoxMortem likes this.
  3. Dabeh

    Dabeh

    Joined:
    Oct 26, 2011
    Posts:
    1,614
    You can use virtual mode in the editor. The editor when in packed mode will not display things correctly if it's grabbing them from bundles built for WebGL, as it's not intended for the editor platform.
     
  4. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Yes, that is correct. I guess I had not read the original post closely enough. When in the editor, you need to build for your stand alone platform (windows or mac or linux).

    -B