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

  Рет қаралды 29,956

Game Dev Bits

Game Dev Bits

Күн бұрын

Пікірлер: 52
@halivudestevez2
@halivudestevez2 Жыл бұрын
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.
@GameDevBits
@GameDevBits Жыл бұрын
Great to hear!
@SYRIASTARSCHANEL
@SYRIASTARSCHANEL 9 ай бұрын
Thanks man , we are looking for great tutorials like that in the future , Big thanks from Syria
@Fadiabuzant
@Fadiabuzant Жыл бұрын
Simple and direct to the point. Thank you
@xkittencatx
@xkittencatx 2 жыл бұрын
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.
@GameDevBits
@GameDevBits 2 жыл бұрын
Glad you liked it!
@gocorona3445
@gocorona3445 2 жыл бұрын
I love the video! Excellent tips and amazing results. You have a new subscriber. Keep up the good work!
@GameDevBits
@GameDevBits 2 жыл бұрын
Awesome! Thank you!
@sothisishowitreallyends
@sothisishowitreallyends 3 ай бұрын
Helped with an issue I was having, thank you
@nunchuckya
@nunchuckya Жыл бұрын
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 Жыл бұрын
Phenomenal! You're going old school like Doom with the face!
@dreamisover9813
@dreamisover9813 4 ай бұрын
Thanks, really good tutorial!
@nm56342
@nm56342 11 ай бұрын
Life Saver! This worked perfectly
@GameDevBits
@GameDevBits 11 ай бұрын
Outstanding!
@alisoroush6426
@alisoroush6426 Жыл бұрын
Thank you so much for this tutorial. It helped me a lot
@GameDevBits
@GameDevBits Жыл бұрын
Im so glad it helped!
@zhanxishi645
@zhanxishi645 Жыл бұрын
I was trying to render a tilemap on the UGUI an it just solved my problem! Thanks for your excellent work~
@XYZGameStudios
@XYZGameStudios Жыл бұрын
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.
@davitsedrakyan
@davitsedrakyan Жыл бұрын
Great video! Saved me ton of time! :)
@GameDevBits
@GameDevBits Жыл бұрын
That's what I love to hear!
@kuroyza7839
@kuroyza7839 Жыл бұрын
Excellent tips Keep it up man!
@yorestus
@yorestus 2 жыл бұрын
Thank you so much! ☺
@ParisLuHv
@ParisLuHv Жыл бұрын
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 Жыл бұрын
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
@sl4shd
@sl4shd Жыл бұрын
Great tutorial thank you!
@decayedgamesstudio
@decayedgamesstudio 7 ай бұрын
Nice one! Thank you!!
@idontunderstandnihongoqwq940
@idontunderstandnihongoqwq940 Жыл бұрын
You are my lifesaver Thanks!
@Mrzero_clks
@Mrzero_clks Жыл бұрын
absolutely amazing!
@_agustinjulian_
@_agustinjulian_ 2 жыл бұрын
Wow thats amazing thank u
@GameDevBits
@GameDevBits 2 жыл бұрын
You’re welcome 😊
@alexmeem6230
@alexmeem6230 2 жыл бұрын
works well. any way to up the quality of the camera tho? very pixaly on the edges
@GameDevBits
@GameDevBits 2 жыл бұрын
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.
@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
@codyhaeys
@codyhaeys Жыл бұрын
THANK YOU!
@rekiallard77
@rekiallard77 6 ай бұрын
Nice
@TheSixoul
@TheSixoul 2 жыл бұрын
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 жыл бұрын
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
@ІгорЛисенко-ж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.
@aravinda8080
@aravinda8080 Жыл бұрын
thank you
@diaryofarobot
@diaryofarobot Жыл бұрын
thanks bro nice job, I subscribed to your channel
@dariushuang1115
@dariushuang1115 Жыл бұрын
so cool!!!
@joshchen3101
@joshchen3101 Жыл бұрын
On my project when android build that not show
@antonsimkin
@antonsimkin 10 ай бұрын
i saw someone doing that for the whole scene
@GameDevBits
@GameDevBits 10 ай бұрын
Could be done for things like split screens or faking some kind of full screen post processing?
@AndrewNumptyPants
@AndrewNumptyPants Жыл бұрын
thankoo
@NotARealPersonBR
@NotARealPersonBR 7 ай бұрын
thanks a bunch for this
@ginick
@ginick 10 ай бұрын
Thanks a lot!
How to Render 3D Objects on a Unity UI Canvas (Simple)
3:38
Max O'Didily
Рет қаралды 14 М.
Unity3D Fast Tips - Synty Animation Locomotion with other characters
3:31
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
Creating a Custom Tab System in Unity
13:45
Game Dev Guide
Рет қаралды 240 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 7 МЛН
Placing 3D objects on a Unity canvas
2:26
Tarodev
Рет қаралды 112 М.
Unity Optimization : reducing 3D objects' draw calls
14:53
about game making
Рет қаралды 74 М.
Why you should use code to animate your UI in Unity.
5:02
Game Dev Guide
Рет қаралды 338 М.
Making a Game About Weak Points
21:27
Emis
Рет қаралды 1,1 МЛН
The 5 Stages of Learning Blender
3:14
Artin Azarnejad
Рет қаралды 357 М.
Unreal Engine Materials in 6 Levels of Complexity
44:12
pwnisher
Рет қаралды 353 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН