#this
1 messages · Page 1 of 1 (latest)
yo
is not what I wrote
you would have to try with those new methods, I cant test rn
i need to paste it?
yes but compare and look what i've changed
yea
what does "doesnt work" mean
still the same
not taking any random points after finishing first one
so its working the same as before though ?
you have to call those methods from the OnTrigger
im trying but its not working
can this work?
i mean how to work with another script from another script
this is basics of Referencing
first you have to make sure your Visual Studio code is configured
if not when you do . dot operator you wont get all suggested methods/available classes
here is a guide @twin vale
https://youtu.be/kXgyfbLpFFU
Required Files in Order used In Video:
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.302-windows-x64-installer
https://dotnet.microsoft.com/download/dotnet-framework/net471
https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022
https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csh...
After that , learn refencing
https://youtu.be/YEk7mKovpUE
A few basic ways to get references in Unity.
Directly-
GetComponent 0:38
/GetComponentInChildren
/GetComponentInParent
Public Variable- 3:00
Find- 5:01
Find 5:39 (by name)
FindWithTag 6:14 (by tag)
FindObjectOfType 6:51 (by component)
Interaction- 7:15
OnCollisionEnter
/OnTriggerEnter
i have this
i mean i have unity IntelliSense
i also found out that i cant go through IsTrigger colliders
why do you think it doesn't work and it's underlined
because its underlined
no
doesnt this mean that its an error*
then you need to go back and understand referecing
me didnt understand him
i watched 2 times and still didnt get it*
oki
wait
i have another question
can i make another script that will do only this code? (trigger enter one)
uh yes
or referring is necessary
okay i tried it still doesnt work
go back and start from the basics then
😢
So i made a referring script and everything works!