Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

2D Sprites in UI

Discussion in 'UI Toolkit' started by MousePods, Jul 9, 2020.

  1. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    108
    Hi,

    I am currently using 2 prefabs of the same crown for wearing in-game and also available in a store.

    The first prefab is made of sprite renderers and particles.

    The second prefab is a copy of the first but made out of images and particles.

    This is really tedious to do. I read that the new UI will support 3D models in the UI. Will it also support 2D sprite renderers and particles or will I have to rebuild each prefab in both in-game and UI?

    I hope that made sense.

    Thanks!
     
  2. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    13
    As Benoit announced in this thread, 3d objects are planned for UIToolkint 1.1

    I hope it will meet your expectations :)
     
  3. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    108
    Sorry, I think I misunderstood. I know 3D is in the works, but does this include 2D sprite renderer prefabs with particles and trail/line renderers? Essentially in-game 2D items with effects being able to easily display in the UI.

    Thanks!
     
  4. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    13
    There should be no difference between 2d and 3d GO support. I personally combined both objects as the main complexity is making all shaders works together when rendering a regular GameObject in a UIToolkit hierarchy.
     
    MousePods likes this.
  5. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    108
    Thanks for the reassurance! I am excited to try it out when it is released.
     
    SimonDufour likes this.
unityunity