- Home /
The question is answered, right answer was accepted
def command in unity?
In the program, I used previously you could use the def command and it would "save" a command line and define a command. if you would use that command it would execute that command line. is there something like that in unity? so a compact like 100 lines in one command line to use multiple times.
Answer by tormentoarmagedoom · Feb 05, 2020 at 02:45 PM
OF course.. You mean to create your own function? the basis of scripintg...
public void MyFunction()
{
Something
Something
Something
}
Then just need to call the function
Mufunction();
Is this what are you asking for?
jeah im a bit new and com$$anonymous$$g from python to C++ is a bit bumpy... but thanks :D
I reccomend you then to watch some of this tutorials for begginers that makes a complete project in 1-2 hours at youtube.
You will get the basics of Unity which is very important if pretend to continue with this :D
BYE!