Creating Notes & Letters In Unity -- UI & Raycast Tutorial

  Рет қаралды 12,518

SpeedTutor

SpeedTutor

Күн бұрын

Пікірлер
@SpeedTutor
@SpeedTutor Жыл бұрын
I hope you enjoy this little tutorial and it helps some people out! :) Let me know what you think! 🔥Unity Sales: bit.ly/UnitySalesHub 🔥SpeedTutor Unity Store: bit.ly/STUnityStorePuzzlePacks 🔥HUMBLE SAVINGS: bit.ly/HumbleBundleDeals
@Cheritera_serampendek
@Cheritera_serampendek 3 ай бұрын
Hi dev, Can a Note & Letter System be implemented on a mobile controller?
@storylygames9770
@storylygames9770 8 ай бұрын
I looked at 3 other tutorials to create a note where it opens and close and this was the only tutorial I got it working eventually, i bought your letter & note system which I use for future projects to save me the headache. thank you for your tutorial
@SpeedTutor
@SpeedTutor 8 ай бұрын
Haha, I'm glad I could help you out! :D Thanks for picking up my asset and do let me know what you think of it. I'd love to hear. You can always send me an email! If you do have time and you do like it, I'd massively appreciate a 5* review on the store because it helps me out massively. Best of luck with your projects though :)
@Dominicn123
@Dominicn123 Жыл бұрын
bro....i'm a new to dev guy, and yeah, im very beginner to coding , like i can't code at all, but i attempted this anyway, and where you wrote the things for your FPS controller, i instead replaced it with a third party asset i'm using for a third person controller, thinking it wouldn't work.... (invector third person shooter) and i just used it's namespace in place of the FPS controller to just try out, and surprisingly IT WORKED!!! omg you cannot believe how happy this all made me lol i just spent an hour following this tutorial thinking it'd be a waste of time but i was so surprised to see everything working well!!!! i am oevr the moon!!! this means you just earnred a new sub and patreon right here!! now to hopefully be able to incorporate your other tutorials with my project, i'm afraid to do a lot of them because i'm using the invector asset, so i didn't think anything would work because this already has it's own little system for interacting and stuff, but omg i am so happy lol keep it up bro!! you are a lifesaver ! if my project (it'll be a survival horror called The Crimson Veil) does well you can bet i'll be adding you to the credits as a source of mentor lmao
@SpeedTutor
@SpeedTutor Жыл бұрын
Oh that's amazing to hear! It isn't always so easy to get other assets working but I'm really glad you've managed it and got my tutorial working on you wanted. It means a lot that you'd come and comment! :) Best of luck with your game, my friend and make sure it's a good one! :D
@qwerTeamxyz
@qwerTeamxyz Жыл бұрын
I was facing a problem where Note Image is not showing And how I fixed was very simple, just make sure to unselect NoteImage and its Text keep the Canvas selected Thanks for the video
@SpeedTutor
@SpeedTutor Жыл бұрын
You're very welcome, thanks for checking this out! :D
@FarwalDev
@FarwalDev Жыл бұрын
Excellent video, I think it is a very good way to use it ;)
@SpeedTutor
@SpeedTutor Жыл бұрын
Thanks man! :) I appreciate you coming to watch.
@СергейСтаростин-ъ3ч
@СергейСтаростин-ъ3ч Жыл бұрын
I'm using the Starter Assets FirstPersonController, and your method didn't work for me. How should I disable player movement?
@SpeedTutor
@SpeedTutor Жыл бұрын
I just made a reference to the FPSController script and then disabled by the script by using .enabled :)
@Dominicn123
@Dominicn123 Жыл бұрын
Also, another question! is it possible to have the little crosshair disabled? well, i'd like to have it to where it'd be like on normal games, where when you're close enough to the object you'd see a prompt to push a button to interact with it, and then it'd disappear once you left!
@SpeedTutor
@SpeedTutor Жыл бұрын
Yes, I normally disable the crosshair gameobject when interacting with the note. Similar to how you stopped your player from moving. Make a reference to your crosshair, hide the object and then unhide or use .SetActive(true/false) to make it happen! :D
@sonhector2008
@sonhector2008 2 ай бұрын
I have this error: Assets/NoteController.cs(6,7): error CS0246: The type or namespace name 'UnityStandardAssets' could not be found (are you missing a using directive or an assembly reference?)
@SpeedTutor
@SpeedTutor 2 ай бұрын
Do you have the standard assets added to your project?
@sonhector2008
@sonhector2008 2 ай бұрын
@ yes
@brandonbell3133
@brandonbell3133 7 күн бұрын
Can the text in the Note have a gradually display? Like the text gradually displays left to right word by word to the end of the sentence. That matches moreso how ppl naturally read as oppose to the text paragraph pop at you all at once.
@SpeedTutor
@SpeedTutor 5 күн бұрын
You could probably create yourself a type writer style effect to make that happen and fill the pages. I have a tutorial on that actually :)
@drricemice2046
@drricemice2046 Жыл бұрын
I'm not using the fps controller will this still work as is or what will I need to change?
@SpeedTutor
@SpeedTutor Жыл бұрын
No, no. You don't have to use that, it was only an example for disabling the movement. :)
@alroma6609
@alroma6609 Жыл бұрын
Do you know if there would be any way to like select the object without using a physics raycast? Because in my case I can't use a collider on the object, and I don't know if that's possible😅
@SpeedTutor
@SpeedTutor Жыл бұрын
My only other suggestion would be to use a OnTrigger event or similar but you'd need to use a collider for that. Although the collider wouldn't need to be on the object. :) Just make it so when you enter the collider, you have the option to open the note. You could even use OnTriggerStay which acts similarly to the update method.
@alroma6609
@alroma6609 Жыл бұрын
@@SpeedTutor Oh okay, I didn't think about that haha. Thanks :D
@SpeedTutor
@SpeedTutor Жыл бұрын
No worries at all :)
@sirwisetuna6729
@sirwisetuna6729 Жыл бұрын
Hello, I'm having an issue where the crosshair flashes from white to red over and over and on' if (Physics.Raycast(playerCam.ViewportToWorldPoint(new Vector3(0.5f, 0.5f)), transform.forward, out RaycastHit hit, rayLength)) { var readableItem = hit.collider.GetComponent();' the hit in hit.collider says get component allocates even if no component is found. Any suggestions?
@space_tape4196
@space_tape4196 Жыл бұрын
I've ran into a little problem. When i start the note is always on screen no matter what I clicl. Any help eould be much appriciated :)
@SpeedTutor
@SpeedTutor Жыл бұрын
Did you turn your canvas off before you started?
@space_tape4196
@space_tape4196 Жыл бұрын
@@SpeedTutor yes, I did
@SpeedTutor
@SpeedTutor Жыл бұрын
So it becomes visible as soon as you start playing? Do you have anything in the start method that causes it to happen?
@oktaybirol4630
@oktaybirol4630 Жыл бұрын
I got an error like this Assets\NoteController.cs(14,26): error CS0246: The type or namespace name 'FirstPersonController' could not be found (are you missing a using directive or an assembly reference?) I use mini fps controller, I do not use this asset. Is that why it's wrong?
@SpeedTutor
@SpeedTutor Жыл бұрын
Then you just need to reference whatever that asset uses for it's way of disabling the controller :)
@llaneelyort5599
@llaneelyort5599 Жыл бұрын
What if I had 2 cameras in my scence. I normally switch between 3rd person(top down) and first person. Would swapping between Using your private camera system and my dual(switchable) camera work together?
@SpeedTutor
@SpeedTutor Жыл бұрын
I imagine it would be fine but without testing it out, I'm not sure about that.
@iop313
@iop313 8 ай бұрын
If this also work with Unity 2D?
@SpeedTutor
@SpeedTutor 8 ай бұрын
Yes, I don't see why not! :) As it just uses the default Unity UI's.
@saumyasingh6595
@saumyasingh6595 Ай бұрын
I used the same code and everything is going well, but for some reason , my cursor gets dissapered as soon as i enter the game mode, can anyone help?
@SpeedTutor
@SpeedTutor Ай бұрын
Most likely because your character controller is causing the cursor to disappear with a piece of code. MouseCursor.visibile = false; - More than likely :)
@deletedaccount2687
@deletedaccount2687 Жыл бұрын
for some reason nothing happens to me. i did everything as in the video, no error messages and still the note does not open when clicked. all names are exactly the same as in the video.
@SpeedTutor
@SpeedTutor Жыл бұрын
Did you add debug lines to check if each part is working as intended?
@deletedaccount2687
@deletedaccount2687 Жыл бұрын
no, idk how hahaha@@SpeedTutor
@SpeedTutor
@SpeedTutor Жыл бұрын
Add Debug.Log("This is your message"); - Add that line to different parts to see if parts of your code works.
@andremilanimartin3338
@andremilanimartin3338 Жыл бұрын
One thing that is missing in the note pack is a physical page turning. I tried creating a book that turns its pages, with some transforms and math, but it never looked right.
@SpeedTutor
@SpeedTutor Жыл бұрын
Are you talking about my note system on the Unity Store? Or something else? :)
@DorminatorX
@DorminatorX 8 ай бұрын
i want to use a 3d model not a sprite and it wont let me
@SpeedTutor
@SpeedTutor 8 ай бұрын
I'm not sure what you mean? You want to make a 3D model appear instead of the UI? Just enable and disable the object instead :)
@DorminatorX
@DorminatorX 8 ай бұрын
@@SpeedTutor i mean that i made a paper model on blender and i want to use it but it wont let me because its not a sprite
@SpeedTutor
@SpeedTutor 8 ай бұрын
I can see what you mean, instead of making the sprite appear. Change the field type to GameObject and then make sure your model appears instead :)
@Nimish_edits
@Nimish_edits 7 ай бұрын
well it does not work for me , i also tried to try other tutorials but none works for me
@SpeedTutor
@SpeedTutor 7 ай бұрын
What happens? As it works for me in this video :)
@Nimish_edits
@Nimish_edits 7 ай бұрын
Well just crosshair shows on screen and nothing happens it's like script didn't do anything
@lukemonsterg4819
@lukemonsterg4819 Жыл бұрын
thx
@SpeedTutor
@SpeedTutor Жыл бұрын
You're very welcome! :)
@ZaphonRBL
@ZaphonRBL Жыл бұрын
too fast pase please go slower
@SpeedTutor
@SpeedTutor Жыл бұрын
Remember you can slow down the video in the settings! :)
@ZaphonRBL
@ZaphonRBL Жыл бұрын
oh your right thx!@@SpeedTutor
@SpeedTutor
@SpeedTutor Жыл бұрын
Haha, no worries! :)
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,4 МЛН
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 800 М.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
Building Runtime UI with UI Toolkit In Unity
21:35
Game Dev Guide
Рет қаралды 70 М.
Creating a Custom Tab System in Unity
13:45
Game Dev Guide
Рет қаралды 240 М.
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,5 МЛН
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 7 МЛН
FIRST PERSON INTERACTION in Unity!
9:40
Kabungus
Рет қаралды 20 М.
How I learned Unity without following tutorials (Developing 1)
18:11
Game Maker's Toolkit
Рет қаралды 2,1 МЛН
choosing a game engine is easy, actually
15:08
samyam
Рет қаралды 690 М.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН