1,352 questions
1 vote
0 answers
39 views
How to check for possible collisions using gizmos
I am making a clone of the game "Arrow Out." I am not sure if this is even the correct way but I am thinking of using gizmos to check if there is another arrow in the path of the clicked ...
0 votes
1 answer
76 views
What is the correct syntax to use LINQ SUM in UnityScript
Hello I'm trying to figure out the correct syntax for getting the sum from a class list using LINQ in unityscript var totalCount: int; class munsters { var beast: String; var min: int = 1; var max:...
2 votes
1 answer
2k views
Why is it SO Hard to Just Mute a Sound in Unity?
I have spent all day looking for a solution to this problem, and I simply can't find one. Using JavaScript in Unity 3D, I have a script where I want to play a sound when the player's velocity on the X ...
0 votes
1 answer
1k views
Unity How to turn off a gameObject's Mesh Collider when a collison on another object is done?
On my unity project I have encountered a problem I want to collide with an object then I want to turn on the mesh collider of an other gameObject this is my code now... #pragma strict private var ...
0 votes
1 answer
800 views
Teleporting Character From Edge to Edge of the Screen
I am trying to Teleport a character from a Edge of the screen to the contrary edge I'm using this: var pos: Vector3 = Camera.main.WorldToViewportPoint(transform.position); if (pos.x < 0.0) ...
0 votes
1 answer
78 views
GameObject activates too soon
EDIT So it's in here, of this I have no doubt, but why? NextOne.active = true; is firing off regardless of whether the action button is being pressed. if(Input.GetButtonDown("Action") && ...
0 votes
1 answer
69 views
class extend variable scope in unityscript
Let me be more specific here: This is used in Unity 2017 so the syntax they are using is this: class CameraMotionBlurEditor extends Editor { var preview : SerializedProperty; var ...
0 votes
1 answer
176 views
Assets/shadow.js(9,19): BCE0019: 'active' is not a member of 'UnityEngine.Transform'
#pragma strict var target : Transform; function Start () { } function Update () { if(target.active){ gameObject.transform.position.x= target.transform.position.x; gameObject....