This is mind blowing. Thank you so much for the amazing tutorial!! I’ve been looking forever for something like this, and this is exactly what I needed!
@rodolfoleal72955 жыл бұрын
Thank you! I'll be using this feature on my project.
@mdmarufhowlader70363 жыл бұрын
It does not capture Canvas element say Text, Button, Image
@msahkoo4 жыл бұрын
Can you help in that!! How can access phone camera and take pictures , then use this picture as texture or we can say use in build?
@mayonez62484 жыл бұрын
This is really informative, and easy to understand! Thanks!
@manochnumfu83404 жыл бұрын
Hello, Your tutorial is very good for me but I have one problem, I can't drag the Snapshot Camera put in the Snap Cam, at show in the last step. I don't know why, could you help me about this problem. Thank a lot.
@mayonez62484 жыл бұрын
If you can't drag, you could instead click on the circle to the left of where it says Snap Cam. A menu should open up on the top left of your screen, where you can find and select the snapshot camera from there
@VirtualTurtleGames3 жыл бұрын
Hi, using the Linear color space, this seems to produce very dark and weird-colored images. I've seen other people complaining about this too, but no solutions yet. Does anyone know how to get an image with correct colors using this method and the linear color space? Thanks!
@DucatChannel2 жыл бұрын
The solution is to create the Render Texture on the fly - that way it woul create a texture with correct color format. You just need to not put your manualy created RenderTexture to the script.
@VirtualTurtleGames2 жыл бұрын
@@DucatChannel That's a good answer, thanks. Even tho that project of mine is not being worked on anymore, it might help someone else!
@arturs2325 жыл бұрын
Thank you! But how do I save pictures over 4k big? 4096X4096 are working fine, but I need higher resolution (8192x8192 and 16384x16384) - Assertion failed on expression: 'm_Memory.renderTextureBytes >= 0' UnityEngine.Camera:Render() HiResScreenShots:LateUpdate() (at Assets/HiResScreenShots.cs:32) Can you help please?
@Erhanjinn5 жыл бұрын
Thanks for the tutorial! It helped me in my own project.
@BoardToBitsGames5 жыл бұрын
Glad it helped! Thanks for watching!
@timurs.9235 жыл бұрын
It almost works. For some reason, the things that are in the LateUpdate() function aren't being called. Thanks
@DougyFreshGames5 жыл бұрын
Same boat. The functions in lateupdate aren't being called and the debug log isn't either.
@chandrikasaidasari3672 Жыл бұрын
I a not able to add Snapshot Camera object to a Player Script which will display in the Inspector when we click on Player object? Can please tell why I am unable to add Snapshot Camera to player Script.
@JoJ19945 жыл бұрын
The code works perfectly when I test it in Editor. But the image captured in mobile is horrible. It is full of noise and repeating a small piece of the camera screen. I have changed to file path from dataPath into persistentDataPath but it still doesn't work well.
@charlieratcliffe72942 жыл бұрын
Hey, great video! Almost exactly what I need. Question, is there a way to then store the pictures taken within the game itself? Such as how you can take photographs in multiple Zelda titles, as well as Pokemon Snap? Any help would be great, thanks!
@SassyPantsy2 жыл бұрын
I hope I'm still relevant, but anyway - what you want to do, is gain access (through your game) to the path (the folder) in which the taken pictures are saved. For instance, if they're saved in - C:/Pictures/MyGamePictures, then you want to build some sorts of class that can ExtractPictures() from said path. Then, you need to display them somewhere in your game (probably a sorting menu or something like that). Anyway, I'd recommend marking/tagging these pictures with something, so that you won't get random pictures showing in your game (unless you want to, ofc). Hope I've helped
@charlesdeschamps28445 жыл бұрын
Great video, you maked my day
@snakeplisken42784 жыл бұрын
How do you do this with an actual in-game camera object. ie instead of letting the player hold an axe, have the fpscontroller hold a camera object that he can aim with right clicke, then zoom then take snapshot.
@alishamandholia37704 жыл бұрын
Hi, did you find a solution? I'm looking for something similar
@walterwhite420684 жыл бұрын
Make an fbx model of cam and make two animations. One when zooming in (goes to eyes) and one when zooming out. On rightmousebuttonup zoom out and on rightmousebuttondown zoom in by changing camera field of view. Lastly disable and enable camera meshrenderer in zoom in and out anims and after that enable snapshot script so u can click and snapshot will be taken
@mepaul70162 жыл бұрын
Thanks !, so useful and already implemented with some modifications.
@themadmadsen6 жыл бұрын
You are bloody beautiful! Tutorial was fantastic and this was exacty what I was looking for! Cheers!
@lottekapunkt9725 Жыл бұрын
Thanks! Worked like a charm.
@SHAIJUJANARDHANAN3 жыл бұрын
Great video. Works like a charm :)
@praveenb-xr2 жыл бұрын
Hi what should I do to take a scrrenshot of specific region and apply it as texture to object in AR ?
@walterford57423 жыл бұрын
How would I take the screenshots and have them displayed? I have an Idea but I'm not sure
@Devlinflaherty4 жыл бұрын
The tutorial was very helpful, but what do I do if I want to be able to access these screenshots in a complete build? From what I've seen I can only access them in the editor.
@walterwhite420684 жыл бұрын
Use Application.persistentDataPath instead of Application.dataPath in the script and to view snapshots after taking those in builds, on windows go to Appdata, then LocalLow, your Company name, your gamename and in the snapshots folder (you have to create snapshots folder via script as it doesn't pre-exist).
@Devlinflaherty4 жыл бұрын
@@walterwhite42068 Thanks. :)
@walterwhite420684 жыл бұрын
@@Devlinflaherty Welcome :D
@carlisr11113 жыл бұрын
@@walterwhite42068 what can i do in mac?
@tomxuan90504 жыл бұрын
Thank you very much for this video! I have been successfully implementing this method. However, just a quick question: is there any way to prevent the ".meta" file from being saved together with the image file?
@DocKaotic3 жыл бұрын
The .meta file is only saved when storing photos that are accessible by the editor. (i.e. if you built the game and installed it somewhere else, it wouldn't have those)
@nahuelchaza4 жыл бұрын
Hi, great tutorial. I have one question How could I add a shadder with a fx to the camera, but when I Take the snap the effect didnt show it. I cant figured where is the problem, With this method should I apply the texture to the render texture maybe? thanx
@davidpratt80226 жыл бұрын
is it possible to use a screenshot and apply it to a material for example as the game is running
@samroberts54805 жыл бұрын
Did you ever get an answer on how to do this? Very curious how to do?
@walterwhite420684 жыл бұрын
Yes you can. Set the material texture to the png file you want to use in script in a try catch block since the png file might not be there.
@Neoseanner3 жыл бұрын
I have 0 idea about programming , is the script from the link exactly the same as the one in the video? i think my script can't be inserted because something called monoBehaviour , which it's already in the script i don't know why help me :(
@catsandgames98713 жыл бұрын
You should try something much easier in Unity than this.
@DrINTJ5 жыл бұрын
Great to learn that Unity needs such a lot of work to do simple stuff.
@catinmask5 жыл бұрын
Just a single line of code: ScreenCapture.CaptureScreenshot();
@TheRealZeaga5 жыл бұрын
Unless you need to capture a render from a separate camera or at a different resolution, it's already a single function.
@inhtruonggiang14635 жыл бұрын
sir, how can i extract every frames form my game, (about 20 Frames per second). In my update() function, i just put the function snapcam.callsapshot(), but it is likely that i just received 1 frame per second,
@batosalangit1438 Жыл бұрын
can this be done in a WebGL app?
@heromoga20005 жыл бұрын
Is This can be applied to hololens ?
@Максимтепанов4 жыл бұрын
тот же вопрос
@TheTechpreneurs4 жыл бұрын
Thank you very much
@foolishonboards Жыл бұрын
Would it be possible to assign a really huge size to the texture like 8k by 8k or more ?
@anactualalpaca7016 Жыл бұрын
Yes, yes it is
@foolishonboards Жыл бұрын
@@anactualalpaca7016 you tried it?
@nv72873 жыл бұрын
Oh yay this is so cool thanks a million!
@reinielvillones18015 жыл бұрын
it is work for the gallery store after take the screen shot?
@reniyato90023 жыл бұрын
why didnt you use the onEnable() method? its way easier than manually checking if the camera is enabled
@eladonstar27213 жыл бұрын
omg brother I love u so much..u saved my day.Thx a lot it's Working
@MijanurRahman-jo1st5 жыл бұрын
How can I apply same process in mobile? please help.
@NheroxD5 жыл бұрын
How can I apply same process in mobile?
@fb17405 жыл бұрын
Thanks a lot !
@DasFrettchenFreddy5 жыл бұрын
When I try to add the Snapshot Camera script to the camera as you explain at 8:35 I get an error message saying "Can't add script behavior TMP_CoroutineTween. The script needs to derive from MonoBehavior!" I would appreciate it sooo much if you could help me figure out whats wrong. Thank you so much!
@BoardToBitsGames5 жыл бұрын
It sounds like in the class declaration, after “public class SnapshotCamera” you need to add “: MonoBehaviour”
@DasFrettchenFreddy5 жыл бұрын
@@BoardToBitsGames thanks for your reply! it already has the : MonoBehavior in the code, so no clue what's wrong: using System.Collections; using System.Collections.Generic; using UnityEngine; public class SnapshotCamera : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }
@Sparrow4205 жыл бұрын
You dragged the wrong thing in there man, it says your script is called "TMP_CoroutineTween", clearly this is from the Text Mesh Pro library.
@mikewigen86463 жыл бұрын
Damnit!!! This is like the 10th tutorial I follow with the same damn result. My screenshots are saved alright but they are always solid black. nothing is shown. What am I doing wrong? Should I change anything to the camera so it can see stuff? Is this a limitation for the free version of unity? is there something with my setup. I have a canvas with screen overlay and Im trying to take a snapshot of a specific gameobject on the scene containing UI things. Im working in 2d. I don't have any 3d things. anyone got a clue?
@developmentstudio99174 жыл бұрын
For android this work?
@andersonleao34134 жыл бұрын
Muito obrigado!
@lee1davis16 жыл бұрын
I know this is off topic. But concerning audio listeners. What if you are creating a split screen space game and your two players are not in the same sector. How do sounds get played for player two if his camera doesn't have an audio listeners? Thanks
@BoardToBitsGames6 жыл бұрын
lee1davis1 good question. Without having done much research on it, you might have to rig up some sort of dummy listening system with one listener that gets passed the audio for both players. Like if player 2 walks by a waterfall, you instantiate a duplicate audio source in the same relative position by player 1 (who would have the listener) or pass both 1 and 2’s local audio sources to a separate communal listener
@JM-dc5rn25 күн бұрын
A lot of comments in here from people who don't know the basics of coding...just go learn the basics. You're wasting your time just trying to copy and paste someone else's code and not having a clue what the lines do. Some of you show you don't even know the unity basics..
@robmitchell39284 жыл бұрын
cool, although I clicked here to learn how to save an image, not create a level. From now on just start with the subject at hand.
@catinmask5 жыл бұрын
Pardon? 30 min tutorial just for a simple screenshot? What is ScreenCapture.CaptureScreenshot() for then? :D
@BoardToBitsGames5 жыл бұрын
If you want to capture a different camera than the main one or get the raw camera input without the rest of the effects on the screen (eg UI) this can be helpful.
@saadanees79895 жыл бұрын
this is literally a 5 min video or less.. too much speaking.
@saadanees79895 жыл бұрын
Just show dragging script and taking snapshot from key or button...
@TheRealZeaga5 жыл бұрын
@@saadanees7989 I mean, yeah. If you want to learn absolutely nothing and never grow as a developer, you can just drag someone else's script in and just be able to have it work. This is useful for people who want to learn how to do this themselves.