#It crashes and gives error so i just
1 messages · Page 1 of 1 (latest)
I will send the error once i reach home if that is fine with you
This is very confusing
The error is from a "pour2.cs" but what we're seeing on the right side is "Pour (Mono Script)" with a class name of "PourAnimation1"
script name and class name must always match
hmm
@terse jasper ye i think its best for me to just redo it from the start since i used a script from a video online and i assume it doesnt work so i will need to redo all from scratch is there any way u can teach me or show me an example?
What'd help you the most is getting a little more familiar with basic unity scripting so you'll have more of an idea what the errors mean and how to start fixing the
But also you can try making the script again, just make sure you don't have extra copies of versions of the same script floating around
tried remakin the script it doesnt really work and i cant really find a solution sadly this assignment just immediately throw us into the deep end of the scripting with vr game so im stuck
Assignment for a school? Shouldn't they be teaching you how scripts work instead of us?
it vr game we got thought the basic like how to make a vr movement type pick up object and stuff like tat but animation wise
was very few
and this was a group project and the team leader picked a drink type game so this is like a main point
The script isn't dealing with animation really
It's simply checking for specific rotation and firing the particle system based on that
Do you know how you can debug if the rotation check is working properly?
i scrapped tat one and followed another one however it seem tat the code the person used is for mac os and it differ from android
let me get the open the project again
All platforms use the same code in unity
If you don't have a basic understanding of how scripts are made and used in unity, swapping from one tutorial to another isn't going to solve that
its just desperate time called for desperate measure so if one didnt work i had to go for another
Line endings are just a file format thing, the code isn't different in any way
This script looks much more complex than the one you started with
ye this one have the pour detector as well as the stream
Hello! Let's finish up writing our Stream script functionality.
Project Template:
https://github.com/C-Through/PourEffect
Great Asset Resource (Quaternius):
http://quaternius.com/assets.html
If you would like to support me or have access to the project files, feel free to check out my Patreon.
https://www.patreon.com/VRwithAndrew
this was wat i was following i understood the explaination and wat each code does but still have error
The first script was one line of code and a particle system
If the particle system works, then it stands to reason that would be the least complex problem to fix
So far you have not actually shown the errors or even described what's not working so there's genuinely nothing me or anyone can do to help
If this code is copied 1:1 it isn't copied right because there's a syntax error somewhere
Normally you'd first configure your IDE for unity so it would directly tell you where the errors are
how can i do tat?
#💻┃code-beginner pinned messages has instructions