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.
Imagine Unity actually adding useful features.
Anything new about this? Why is it impossible to render a first person view properly in HDRP without being a shader god or something? Come on...
Alright so, I know this is not ideal since it's doing the calculations every frame, but it works for now. Would love an official solution to be...
That seems to work for a regular float, but doesn't work for a Vector2 which goes between -1 and 1.
Like Melv said, check the scripting reference. if (Input.GetMouseButtonDown(0)) { Vector2 mPos =...
Oh, my bad, I don't work with 2D that much. :D
Replace your old code inside of if (Input.GetMouseButtonDown(0)) { // put that code here } And don't forget to replace "NAME" with what you...
2D raycasts work a bit different from 3D ones. Try this: var cam = Camera.main; RaycastHit2D hit = Physics2D.Raycast(new...
You need to do Physics2D.Raycast, not Raycast2D. :) https://docs.unity3d.com/ScriptReference/Physics2D.Raycast.html
Is there a 2D collider attached to the object?
Hmm, can't you just do .. ? void FunctionName(UnityEngine.InputSystem.InputAction.CallbackContext obj, GameObject yourObj){ }
you need void FunctionName(UnityEngine.InputSystem.InputAction.CallbackContext obj){ }
Is there any way to add gravity to a Vector2 value like you could in the old input system? Please, I really need this.