Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug USD unity material assignment disappear in Play Mode

Discussion in 'Formats & External Tools Previews' started by kFreezer, Mar 10, 2020.

  1. kFreezer

    kFreezer

    Joined:
    Mar 15, 2019
    Posts:
    29
    Hi!

    I have an issue where I assigned a Unity material as I did a shader with shadergraph and when I enter Play Mode the USD resets to the default materials, even when I apply the overrides on the prefab.

    The only way to make it work is to close Unity and re-open it

    Am I missing something or is it an actual issue?

    I tried this in 2019.3.0 & 2019.3.4
     
  2. judub

    judub

    Unity Technologies

    Joined:
    Nov 5, 2019
    Posts:
    11
    Hello,

    That was definitely a bug. A faulty check was forcing a full rebuild of usd assets in a prefab when entering PlayMode.
    I just pushed a fix in the repo. It will be available in v1.0.4-preview.1

    Thanks for the report.
     
    kFreezer likes this.