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

preview_player
Показать описание
Lets create a letter and note that can be picked up using a raycast, this could be used in an adventure, horror or any type of game. Use the raycast to find the object will the script we desire, then create the UI elements which will allow us to change the text which will appear on the notes inside the inspector.

🎁 Get OVER 220+ Scripts, Projects and premium content on my PATREON HERE:

·························································································

·························································································

💰BIG DISCOUNTS on my website, for my UNITY ASSETS:

💬Join the Community Discord:

💝 Make a donation to the channel:

·························································································

00:00 Intro
00:37 Creating the UI
02:56 Creating 3D Note Object
03:15 Creating Raycast Script
07:22 NoteController & Using it In the Raycast Script
08:25 Scripting the Note Controller
12:00 Setting Up The Note Controller In Unity

·························································································

⬇️ SpeedTutor Puzzle Assets:

⬇️ SpeedTutor Best Selling Assets:

⬇️SpeedTutor Model Packs:

My Assets include: Gas Mask, Flashlight, Generator, Themed Key , Padlock, Phone, Chess Puzzle, Lever, Valve Puzzle, Fuse Box & Safe Systems. Cardboard, Debris, Massive Models and more!

························································································

⭐ Connect with me:

·······················································································
#SpeedTutor #Unity #Note
Рекомендации по теме
Комментарии
Автор

I hope you enjoy this little tutorial and it helps some people out! :) Let me know what you think!

SpeedTutor
Автор

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

storylygames
Автор

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

Dominicn
Автор

Hey I doubt you will see this but mine says there’s an error on the “[Header(“Crosshair”)]” line and I’ve copied you code exactly

OzoneDJ
Автор

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 <3

qwerTeamxyz
Автор

This is amazing and works wonderful! One thing I have some hard time with though is, I use E to pick up and read the note, but I can't use E again to close it? Is there a way to fix that? :)

GameNajt
Автор

Can you help me about something? So when i try closing the note it gets opened up right again. It seems like both close + open functions work at the same time when i press the key. (Closing and opening keys are both 'T')

AstralEdge_Interactive
Автор

Excellent video, I think it is a very good way to use it ;)

FarwalDev
Автор

I'm using the Starter Assets FirstPersonController, and your method didn't work for me. How should I disable player movement?

СергейСтаростин-ъч
Автор

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.

brandonbell
Автор

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 :)

space_tape
Автор

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!

Dominicn
Автор

I'm not using the fps controller will this still work as is or what will I need to change?

drricemice
Автор

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😅

alroma
Автор

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?

llaneelyort
Автор

Hello,

I'm having an issue where the crosshair flashes from white to red over and over and on'

if Vector3(0.5f, 0.5f)), transform.forward, out RaycastHit hit, rayLength))
{
var readableItem =

the hit in hit.collider says get component allocates even if no component is found. Any suggestions?

sirwisetuna
Автор

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.

andremilanimartin
Автор

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?)

sonhector
Автор

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.

deletedaccount
Автор

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?

saumyasingh
join shbcf.ru