Search Unity

Make 3d Object appear in front of button.

Discussion in 'UGUI & TextMesh Pro' started by kennethrunescape2019, Jun 25, 2019.

  1. kennethrunescape2019

    kennethrunescape2019

    Joined:
    Feb 5, 2019
    Posts:
    109




    Is there any way to make the log appear in front of the button without messing with transform.position?
     
  2. Fuzzele

    Fuzzele

    Joined:
    Jan 29, 2022
    Posts:
    3
    poor guy never got the help he truly deserved
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,440
    some ideas to try:
    - pre-render those objects into textures at game start, or in editor or at anytime really (could even draw nicer looking sprites manually, if its fixed icon)
    - custom shader, that draws on top of UI (but can get complicated and adds extra complexity..)
    - separate camera, to draw on top of UI (but can get complicated and adds extra complexity..)
    - Render thumbnails on demand into rendertexture, assign rendertexture to RawImage
    - check asset store (this came out first, could have others) https://assetstore.unity.com/packag...render-3d-models-on-any-unity-ui-canvas-92476