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.
That did the trick. Only issue is the object activated at the end of the raycast, the hit point, the "splash" damage at the point of impact. When...
using UnityEngine; public class LaserWithActivation : MonoBehaviour { public Transform startPoint; public float maxDistance = 20f;...
I'm making a laser beam in Unity using a raycast and a line renderer. The Raycast works great for the most part, it's endpoint will change based...
Did more searching for my issue. Im using a legacy build of Unity and found a package called inControl on github. I can now use my dpad. Its...
Im not using the new input manager and instead setting it up in an old fashion way for a quick simple test of an input, but i cant get any input...
Thanks, but that didn't work Wanted to show both of you what I found online that solved my issue: Vector3 vectorToTarget =...
I see. I'm just going to have to rotate how I have my camera positioned and how the game is set up so I can use the lookrotation. I followed one...
Thanks, I tried switching over to using that, but I'm getting the same results. Vector3 distancetoTarget = player.transform.position -...
Vector3 vector = player.transform.position - transform.position; vector.Normalize(); if (vector != Vector3.zero)...
Start screen: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class...
I have a start page scene that leads to the game scene when you press start. It does this fine, but only once.When the game is over due to the...
Hey, I have two controllers connected to my Laptop via bluetooth. One PS4 and one PS5. They both run just fine for multiplayer games on Steam. So...
Found this thread via a search, thought I'd share something. Use your Game Manager script to detect how many of something is in the game world...
Thanks for your tips again Kurt. I'm looking in the inspector at the maxDistance, and the float is indeed increasing, it's just not updating in...
I see, thanks, looks like its working to a degree, but with a few quirks due to how my current code is set up. I'm having the maxDistance be...
Two questions. I have a RaycastHit, that extends from the player object. Right now, it goes off into infinity until it hits a collider. I'm using...
Yes, that's what I'm talking about. Also, Quaternion.Euler is what I was missing. I'm spawning projectiles on an automatic rotating turret that...
Using Vector3.MoveTowards, you can move a current objects position to a target position. Usually, for me, either an empty game objects transform,...
Nvm, realized I didn't set the collision of the other objects to "Is Trigger"
I have a piece of script that detects if it is hit by an object with a tag, like this: void OnTriggerEnter(Collider other) { if...