A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Well, do you need it to be a MonoBehaviour? This just corresponds to a script attached to a GameObject so it can't work "on its own" like a...
It seems like you're using JS while this code is in C#. The second line remains the same but the first one changes I believe, this should fix it:...
That was my thought as well, but I wanted to find a way around because it doesn't seem to elegant IMO. I'll stick to that otherwise!
Hi! This is exactly what I have at the moment (and it's what I'm looking for, you nailed it). It works most of the time, so long as I don't move...
Hi, I'm looking for a way to transform a vector into a new basis which is not hold in any transform. I'm rotating a system around the Earth and...
Why not store the number in the script and recover the correct animation with it (from string or array)? Something like: int currentAnim;...
Well, the error speaks for itself, GameObject.Find only takes one string argument. What are trying to do by adding the second argument "World"?
What you showed in your first part of code is right, it autocompletes because ShipMove is a known type so Firelaser() is a known method from that...
Yes that's the way to design it.
Thanks for the precision imaginaryhuman. I just made some further tests with clamping/repeat and got the hang of it now.
Thanks for these fast inputs! Unfortunately no I can't do that in another software since the final shader for the Earth is much more complicated...
Hi, I've got a 8192 x 4096 texture that I would have liked to apply to a gameobject. As it turns out, I can't because of Unity limitations about...
Hi, I'm trying to blend two textures depending on the position of the object from the light source. When I test it without any texture, it works...
You need to somehow know whether you're on the ground or not. You can do that with a boolean or an enumeration storing the different states of...
When you use instantiate, you need to cast the return Object to a GameObject since this is the type of p: p = Instantiate(player,...
Is your newPos actually meant to be a quaternion? That's what is causing the problem: you're defining a Quaternion using the constructor with only...
Just create a timer or coroutine to wait for 30 seconds. Here's the example with the timer: private float timer; private float maxTime;...
Just move the parent of the object instead of the object itself: transform.parent.position.y -= 2.5;
I didn't make myself clear. You're meant to leave it static and add public. They do not have the same meaning: - public defines the visibility of...
If you want to access the variable from another script, you should make it public. Since the variable is static, you don't need an instance of a...