Unity3D Fast Tips - Using RenderTexture to show a 3d object in UI

Поделиться
HTML-код
  • Опубликовано: 27 янв 2025

Комментарии • 52

  • @halivudestevez2
    @halivudestevez2 Год назад +5

    In 2023 Beta Unity Editor you can find the Target Texture of the camera under the Output section in the Inspector, and called "Output Texture"

  • @flurinjenal374
    @flurinjenal374 Год назад

    Amazing, thanks a lot! Was able to fix a bug in my own setup using your tutorial. Never stop making great videos.

  • @xkittencatx
    @xkittencatx 2 года назад +3

    Oh my gosh! This is a really great video! Whenever I would try to put 3D GameObjects as UIs, I would do so with two different Canvases, and then also playing around with the Camera settings. Then I would have to fumble with the layers and layerMasks. And THEN I would have to increase the size of the 3D GameObjects exponentially.
    This looks so much easier and seems like it would be less performance intensive.

  • @Fadiabuzant
    @Fadiabuzant Год назад +2

    Simple and direct to the point. Thank you

  • @SYRIASTARSCHANEL
    @SYRIASTARSCHANEL 8 месяцев назад

    Thanks man , we are looking for great tutorials like that in the future , Big thanks from Syria

  • @nunchuckya
    @nunchuckya Год назад +2

    Great tutorial, thanks a lot, I manage to place different animations in my 3D UI (a face of my character that changes according to whats happening in game)

    • @GameDevBits
      @GameDevBits  Год назад +1

      Phenomenal! You're going old school like Doom with the face!

  • @gocorona3445
    @gocorona3445 2 года назад +2

    I love the video! Excellent tips and amazing results. You have a new subscriber. Keep up the good work!

  • @sothisishowitreallyends
    @sothisishowitreallyends 3 месяца назад

    Helped with an issue I was having, thank you

  • @nm56342
    @nm56342 11 месяцев назад +1

    Life Saver! This worked perfectly

  • @zhanxishi645
    @zhanxishi645 Год назад

    I was trying to render a tilemap on the UGUI an it just solved my problem! Thanks for your excellent work~

  • @dreamisover9813
    @dreamisover9813 3 месяца назад

    Thanks, really good tutorial!

  • @XYZGameStudios
    @XYZGameStudios Год назад +2

    If you use URP and you need a transparent background i think this wont work and the official Unity Thread about the fix is over 5 years old without a Solution. The most easy way is to make a screenshot and remove the background. You cant chage the rotation with this solution but if you just want the model as a picture this works.

  • @alisoroush6426
    @alisoroush6426 Год назад +1

    Thank you so much for this tutorial. It helped me a lot

  • @kuroyza7839
    @kuroyza7839 Год назад

    Excellent tips Keep it up man!

  • @davitsedrakyan
    @davitsedrakyan Год назад +1

    Great video! Saved me ton of time! :)

  • @yorestus
    @yorestus 2 года назад +2

    Thank you so much!

  • @decayedgamesstudio
    @decayedgamesstudio 7 месяцев назад

    Nice one! Thank you!!

  • @Mrzero_clks
    @Mrzero_clks Год назад

    absolutely amazing!

  • @sl4shd
    @sl4shd Год назад

    Great tutorial thank you!

  • @_agustinjulian_
    @_agustinjulian_ 2 года назад +1

    Wow thats amazing thank u

  • @ІгорЛисенко-ж9н
    @ІгорЛисенко-ж9н 7 месяцев назад

    Render texture is redundant in this case.
    You may just put 3d object in ui on ui layer and upscale it to be visible.
    Render texture is more of tv/monitor ingame imitation.

    • @GameDevBits
      @GameDevBits  7 месяцев назад

      Scaled up objects can work, but a canvas is not intended to display 3d objects. Large objects can have floating point issues, they can intersect and overlap through UI elements or have shadowing issues.
      There's always more than one way to skin a cat. :)
      This is absolutely an intended use for render textures, it's why they support transparency.

    • @ІгорЛисенко-ж9н
      @ІгорЛисенко-ж9н 7 месяцев назад

      @@GameDevBits
      1. Agreed.
      2. More than one skin? Instantiate prefab.
      Usage of render texture increase draw calls.
      For PC it pretty much ok, but for mobile no.

  • @idontunderstandnihongoqwq940
    @idontunderstandnihongoqwq940 Год назад

    You are my lifesaver Thanks!

  • @Sweets_Commander
    @Sweets_Commander Год назад

    I’m struggling to figure out particle render queue which is making a model appear over particles

    • @GameDevBits
      @GameDevBits  Год назад

      If your UI/Canvas is in Overlay mode it will be drawn at the end of the frame and always over the particles.
      Unity have a github project that brings particles into UGUI and sorts this out for you: github.com/mob-sakai/ParticleEffectForUGUI

  • @TheSixoul
    @TheSixoul 2 года назад +4

    Good video but work on keeping your volume consistent throughout the video. You go from alright volume to really loud and booming then to super quiet that it's hard to hear.

    • @GameDevBits
      @GameDevBits  2 года назад +2

      Really appreciate the comment!
      Coming off a few weeks of being unwell and Im pretty sure now I skipped the normalisation process.
      Thanks for watching and never hesitate to call it out if I drop the ball on stuff like that.

    • @janikcodes
      @janikcodes 2 года назад

      yeah that scared the shit out of me lmao

  • @codyhaeys
    @codyhaeys Год назад

    THANK YOU!

  • @ParisLuHv
    @ParisLuHv Год назад +1

    what if i wanted to display a full inventory, with say 24 items displaying. would you create a camera for each item? or is there a way to make some sort of map?

    • @GameDevBits
      @GameDevBits  Год назад +1

      For a bunch of items like that, I'd question if they need to be 3d. You could render them in advance and create icons.
      I have a free Unity tool here to do that: timps.itch.io/timpsshot

  • @alexmeem6230
    @alexmeem6230 Год назад +1

    works well. any way to up the quality of the camera tho? very pixaly on the edges

    • @GameDevBits
      @GameDevBits  Год назад

      You can change the resolution on your render texture to increase the quality. Just keep in mind the cost. Default res is 256x256 which might only be suitable for a very small item on screen.

  • @rekiallard77
    @rekiallard77 5 месяцев назад

    Nice

  • @dariushuang1115
    @dariushuang1115 Год назад

    so cool!!!

  • @joshchen3101
    @joshchen3101 Год назад

    On my project when android build that not show

  • @aravinda8080
    @aravinda8080 Год назад

    thank you

  • @antonsimkin
    @antonsimkin 10 месяцев назад

    i saw someone doing that for the whole scene

    • @GameDevBits
      @GameDevBits  9 месяцев назад +1

      Could be done for things like split screens or faking some kind of full screen post processing?

  • @AndrewNumptyPants
    @AndrewNumptyPants Год назад

    thankoo

  • @diaryofarobot
    @diaryofarobot Год назад

    thanks bro nice job, I subscribed to your channel

  • @NotARealPersonBR
    @NotARealPersonBR 7 месяцев назад

    thanks a bunch for this

  • @ginick
    @ginick 9 месяцев назад

    Thanks a lot!