Take PHOTOS in Unity (POLAROID Pictures Camera UI)

Поділитися
Вставка
  • Опубліковано 29 сер 2024

КОМЕНТАРІ • 56

  • @SpeedTutor
    @SpeedTutor  2 роки тому +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

  • @deadbroadcastpc
    @deadbroadcastpc 2 роки тому +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 роки тому +1

      Thanks man! I really appreciate it. You let me know how it goes! :)

  • @calvinms7503
    @calvinms7503 Рік тому +2

    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!

  • @teoprod
    @teoprod 2 роки тому +3

    Loved this man! Awesome work 👊

    • @SpeedTutor
      @SpeedTutor  2 роки тому +1

      I really appreciate that, thanks very much my friend! :D

  • @charlieratcliffe7294
    @charlieratcliffe7294 2 роки тому +6

    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 роки тому +3

      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.

  • @brmawe
    @brmawe 2 роки тому +2

    Love your vids! Great work.

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      Thanks man, I really appreciate that! :D

  • @zenzaigarden
    @zenzaigarden Рік тому +2

    Hey, Matt. Would it be possible for you to create a video tutorial explaining how to save each and every screenshot into an album for subsequent viewing? My game has photography so it would be a really nice mechanic to have.

  • @BitGamey
    @BitGamey 2 роки тому +1

    Great tutorial - nice job!

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      Thanks man, I appreciate it! :)

  • @badllama1210
    @badllama1210 4 місяці тому +1

    Thank you for this!

    • @SpeedTutor
      @SpeedTutor  4 місяці тому

      You're very welcome, what are you using it in? :)

    • @badllama1210
      @badllama1210 4 місяці тому

      @@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.

  • @pierocruz6191
    @pierocruz6191 8 місяців тому +1

    Great tutorial!

    • @SpeedTutor
      @SpeedTutor  8 місяців тому +1

      I really appreciate it! :) What are you using this for?

    • @pierocruz6191
      @pierocruz6191 8 місяців тому

      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.

  • @random_precision_software
    @random_precision_software 2 роки тому +1

    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

  • @robocem256
    @robocem256 7 місяців тому +1

    I haven't wachted the video yet but I want to know if this works in 2D too.

    • @SpeedTutor
      @SpeedTutor  7 місяців тому

      It should work with whatever game you want to create :)

    • @robocem256
      @robocem256 7 місяців тому

      @@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???? 😥😥😥😥

  • @justscrolling97
    @justscrolling97 Рік тому

    How to save these images in an album to get it later in game gallery? Please guide

  • @random_precision_software
    @random_precision_software 2 роки тому +1

    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 роки тому +1

      @@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.

  • @mateusztomaszek4921
    @mateusztomaszek4921 Рік тому

    Anyway of being able to take these photos but also capture the canvas?

  • @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 10 місяців тому

      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);
      }
      }

  • @GamesDeadhead
    @GamesDeadhead 5 місяців тому

    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  5 місяців тому

      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 5 місяців тому +1

      @@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  5 місяців тому

      Amazing! Thanks for sharing your solution and thoughts. I hope it will help others out in the future :)

  • @daekgownlim6555
    @daekgownlim6555 11 місяців тому

    영상에서 18:52에 카메라 UI를 사용했는데 카메라 UI는 어디서 얻나요??
    음향 효과 포함

    • @SpeedTutor
      @SpeedTutor  11 місяців тому

      What are you asking?

    • @daekgownlim6555
      @daekgownlim6555 11 місяців тому

      ​@@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 11 місяців тому

      @@SpeedTutor And I'm very happy for your reply

  • @XionBrown
    @XionBrown 2 роки тому +1

    Would this work with 2D?

    • @SpeedTutor
      @SpeedTutor  2 роки тому +1

      It's taking whatever your screen is rendering so I don't see why not :)

    • @XionBrown
      @XionBrown 2 роки тому +1

      @@SpeedTutor Nice, thank you!!

  • @syamimiaziz5383
    @syamimiaziz5383 2 роки тому

    Hi does it support unity 2019.3v?

  • @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 роки тому +1

      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