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.
Is the object you are trying to move still? If so, I think that the range for the speed is too small since you are multiplying it by...
I just tried that, and it did make the arrow ignore collisions with the enemy, but I also have an event that needs to get invoked when the bullet...
I have a bow that shoots arrows. When the arrow collides with an object, I want it to run its logic when it collides with the object but then...
My new code is: float _zRotation = Vector3.SignedAngle(attackAOE.transform.position - trans.position, player.position - trans.position,...
I have an enemy that has an attack AOE (area of effect, it is a trigger polygon collider) in which any objects will get damaged when the enemy...
Alright, I will avoid using a static event. How should I subscribe to the events, though? Should I make a separate script called EventNameHandler...
Why would it be bad in this case to be able to subscribe to the event from any script? Isn't using a variable to reference the class similar to...
I have a class that has the public static event Action OnPlayerDeath; event, and I want some functions to subscribe to it. Should I make another...
I did not create the sounds that are playing weirdly, but I have edited every sound in Audacity and exported them using whatever the default...
When I build my game to WebGL, a couple of sounds are distorted while the others work well. In the Unity Editor, everything works fine though....
I tried adding a rigidbody and activating gravity when needed, but it falls really slowly even when I make the mass super high. Is there a better...
I have a collectable that I am trying to spawn on terrain. I have 2 Vector3s which are the bounds of the spawning (they make the collectable...
I found out why. It is because my function had two parameters which OnClick() events (and in general UnityEvents) cannot use
I have a button and in the OnClick() event I have a gameobject that has the script that I want to attach to the button. When I drag and drop the...
Ah, my camera was perspective, not orthographic. Also, thank you for informing me about Physics2D.OverlapPoint, I haven't heard of that
I've fixed this using ChatGPT: using UnityEngine; public class TileClick : MonoBehaviour { private Vector3 screenPos; private Vector3...
I am trying to detect the position of the mouse and create a ray. If it detects a gameobject that has the "Tile" tag and that same gameobject has...
For my case, I want a square made of evenly sized tiles and is odd in lengths so that it has a proper center, what should I use instead of a...
private Coroutine coroutine; [SerializeField] private GameObject tile; private void Start() { pos = new Vector2(0, 0);...
When I replaced courotine = SpawnTiles(3); with the code you provided, it gave me an error saying "Cannot implicitly convert type...