Take PHOTOS in Unity (POLAROID Pictures Camera UI)

  Рет қаралды 18,362

SpeedTutor

SpeedTutor

Күн бұрын

Пікірлер: 53
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Let me know what you think of this tutorial! I think it's a really cool effect, I hope you all find it helpful! 🕹️Unity New Year Sale (Exp: 11 Jan 22): bit.ly/UnityNewYear21Sale 🕹️Check out all the Humble Bundle Deals: bit.ly/HumbleBundleDeals 🎁 Get OVER 115 Scripts, Projects and premium content on my PATREON HERE: bit.ly/SpeedTutorPatreon
@charlieratcliffe7294
@charlieratcliffe7294 2 жыл бұрын
This is great! I was wondering if there is a way to store the pictures into some kind of photo album for later viewing, such as in Legend of Zelda titles? Any help would be good!
@SpeedTutor
@SpeedTutor 2 жыл бұрын
You could create yourself a little inventory that stores all of the images you've taken, because we save the images into a variable. Use that variable to put into a free inventory slot. You could use a ScriptableObject and things like that.
@calvinms7503
@calvinms7503 Жыл бұрын
this video wins you a subscriber. Great work
@SpeedTutor
@SpeedTutor Жыл бұрын
Thanks so much, Calvin! I'm happy to have you and I hope you find more great things you'll like! :D
@calvinms7503
@calvinms7503 Жыл бұрын
@@SpeedTutor yeah, especially the puzzle and interactable stuff in the asset store, that will help with my development. Thank you so much for your work!
@deadbroadcastpc
@deadbroadcastpc 2 жыл бұрын
Going to mess with this a lot today, thanks for the walkthrough my friend and that game is looking very atmospheric!!!
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Thanks man! I really appreciate it. You let me know how it goes! :)
@teoprod
@teoprod 2 жыл бұрын
Loved this man! Awesome work 👊
@SpeedTutor
@SpeedTutor 2 жыл бұрын
I really appreciate that, thanks very much my friend! :D
@pierocruz6191
@pierocruz6191 10 ай бұрын
Great tutorial!
@SpeedTutor
@SpeedTutor 10 ай бұрын
I really appreciate it! :) What are you using this for?
@pierocruz6191
@pierocruz6191 10 ай бұрын
I'm using it with 'native gallery' package to implement a phone camera mechanic for an app. I will try to graduate from university with this.
@badllama1210
@badllama1210 6 ай бұрын
Thank you for this!
@SpeedTutor
@SpeedTutor 6 ай бұрын
You're very welcome, what are you using it in? :)
@badllama1210
@badllama1210 6 ай бұрын
@@SpeedTutor I’m making something similar to Pokémon snap. I mainly needed the render target process portion of the tutorial. Then I moved on to interface tutorials.
@brmawe
@brmawe 2 жыл бұрын
Love your vids! Great work.
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Thanks man, I really appreciate that! :D
@random_precision_software
@random_precision_software 2 жыл бұрын
Very Handy !! I remember doing something simular for my Google Play Store Games.. they need to be certain pixals x and y, and I got fed up doing it in Photoshop, so I wrote a an app for it !!
@SpeedTutor
@SpeedTutor 2 жыл бұрын
You're a smart man Roy! When did you release that?
@random_precision_software
@random_precision_software 2 жыл бұрын
@@SpeedTutor ive put a few things on Google play store and the only thing that does my head is , the exact pixel size of the screen shots needed. I seen someone do a screen saver and adapted it,I can't even remember were I've put the project now lol
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Haha, you must have thousands of folders and files!
@random_precision_software
@random_precision_software 2 жыл бұрын
@@SpeedTutor 3x 500GB ssd's 1x3 terabyte hd and 1x1 terabyte hd
@BitGamey
@BitGamey 2 жыл бұрын
Great tutorial - nice job!
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Thanks man, I appreciate it! :)
@shortStories197
@shortStories197 Жыл бұрын
How to save these images in an album to get it later in game gallery? Please guide
@mateusztomaszek4921
@mateusztomaszek4921 Жыл бұрын
Anyway of being able to take these photos but also capture the canvas?
@robocem256
@robocem256 9 ай бұрын
I haven't wachted the video yet but I want to know if this works in 2D too.
@SpeedTutor
@SpeedTutor 9 ай бұрын
It should work with whatever game you want to create :)
@robocem256
@robocem256 9 ай бұрын
@@SpeedTutor Thank you, but I want to ask you a really important question. So in my game I want the player to click on the place that they want to take the picture of, so I figured out a solution: you take the mouse position, then get the opposite of the mouse position, then you set the photo display area position to that value. This way, the visible part of the picture aligns with the place you clicked on. Except that doesn't work AT ALL. I tried this multiple times, but all the photo display area does is that it teleports out of bounds to a random place. I found other solutions to why the photo display area might go to a random place, but I don't know that many codes and functions as much as you do. SO PLEASE HELP ME, can you make any suggestions on how to write a script like that???? 😥😥😥😥
@random_precision_software
@random_precision_software 2 жыл бұрын
Matt, can I give people some advice m8? Never NEVER never call one of your scripts scenemanager lol..I imported my retro loading screen asset into my project, and it took me an hour and a half working out why I wasn't getting my menu screen scene loading in my game scene to work.lol DOH !
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Haha, of course you can mention anything you want! :) Always great to share tips. Haha. Oh no, what did you rename it to?
@random_precision_software
@random_precision_software 2 жыл бұрын
@@SpeedTutor just added a s to scene so to scenesmanager
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Haha! Very good thinking! Sometimes such tiny things can mess you up.
@thatoneguykaden
@thatoneguykaden Жыл бұрын
Is there a way to make the camera UI to not show up until you press a button? Sort of like how you wouldn’t always have the camera up in your face until you bring it up and look through to take the picture if that makes sense
@jonathanpetersen1296
@jonathanpetersen1296 Жыл бұрын
Try using canvas.SetActive. Then use an if statement to bind that to a button. My code would look like this: public GameObject canvas; void Update() { if (Input.GetKeyDown("k")) { canvas.SetActive(!canvas.activeSelf); } }
@daekgownlim6555
@daekgownlim6555 Жыл бұрын
영상에서 18:52에 카메라 UI를 사용했는데 카메라 UI는 어디서 얻나요?? 음향 효과 포함
@SpeedTutor
@SpeedTutor Жыл бұрын
What are you asking?
@daekgownlim6555
@daekgownlim6555 Жыл бұрын
​@@SpeedTutor If you look at it at 19:32, you're talking about the UI you added to the corner and the center of the screen Project - > UI 요소 - > Camera_Centre_Cross And I want to know where I can get the sound effects of 20 minutes and 44 seconds. Effect of clicking or shutter sound I was deeply impressed by your video and worked on it, and I was wondering where I could get the UI you used in the video
@daekgownlim6555
@daekgownlim6555 Жыл бұрын
@@SpeedTutor And I'm very happy for your reply
@XionBrown
@XionBrown 2 жыл бұрын
Would this work with 2D?
@SpeedTutor
@SpeedTutor 2 жыл бұрын
It's taking whatever your screen is rendering so I don't see why not :)
@XionBrown
@XionBrown 2 жыл бұрын
@@SpeedTutor Nice, thank you!!
@GamesDeadhead
@GamesDeadhead 7 ай бұрын
Hey, I used a second camera which has more of a zoom, and moved the creation of a texture2D into the Ienumerator that captures the photo. I'm still getting really 'wide' photos. Any idea why it wont recreate the visuals of the zoomed in camera?
@SpeedTutor
@SpeedTutor 7 ай бұрын
That's not something I can answer which testing it myself - Is it something you could put into ChatGPT or something similar to give you some thoughts?
@GamesDeadhead
@GamesDeadhead 7 ай бұрын
@@SpeedTutor All good, figured it out. The solution was a bit different. I had the 2nd camera render to a render texture, and then changed the texture 2d to use the camera.activetexture width and height to create the tex2d. Tis bypasses the need to make a rect. Instead of using ReadPixels, I used Graphics.CopyTexture instead
@SpeedTutor
@SpeedTutor 7 ай бұрын
Amazing! Thanks for sharing your solution and thoughts. I hope it will help others out in the future :)
@qxt-so3qi
@qxt-so3qi 2 жыл бұрын
Can I save the texture as a png in a folder ?
@qxt-so3qi
@qxt-so3qi 2 жыл бұрын
So u can look at all the pictures you made in a "photo book" in the game
@SpeedTutor
@SpeedTutor 2 жыл бұрын
As these images are all saved into a Texture2D and Sprites within the code, you could then use them in a photo viewer for later use. If you kept that in a list of some sort for later! :)
@qxt-so3qi
@qxt-so3qi 2 жыл бұрын
@@SpeedTutor thank you
@syamimiaziz5383
@syamimiaziz5383 2 жыл бұрын
Hi does it support unity 2019.3v?
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Yes, absolutely! :)
GTA In-Game MOBILE in Unity (Unity UI Tutorial)
31:49
SpeedTutor
Рет қаралды 6 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 71 МЛН
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 3,2 МЛН
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 29 МЛН
Creating Notes & Letters In Unity -- UI & Raycast Tutorial
15:00
Device Camera - How to - Unity 3D [Tutorial]
14:11
N3K EN
Рет қаралды 190 М.
Snapshot Tutorial: Making Image Files From Unity Cameras
29:24
Board To Bits Games
Рет қаралды 55 М.
Making UI That Looks Good In Unity
18:06
Game Dev Guide
Рет қаралды 687 М.
How to Build A Save System in Unity
9:41
Game Dev Guide
Рет қаралды 172 М.
Unity Lighting Clinic 1
28:44
The Unity Workbench
Рет қаралды 85 М.
Coroutines in Unity (how & when to use them)
12:35
Game Dev Beginner
Рет қаралды 29 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 71 МЛН