Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
52 views

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 ...
GameDevEnthu's user avatar
-1 votes
1 answer
75 views

I'm trying to create a UnityScript. When the player hovers their mouse over a cube, it goes green. If the player does OnMouseDown, the color will go red. If the Player does OnMouseUp, the color will ...
DamienAnimates's user avatar
0 votes
1 answer
78 views

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:...
Jenna Jones's user avatar
-2 votes
1 answer
313 views

I have added the below script to the NPC. on clicking on to the NPC the MessageBox (Panel in Canvas) should appear. But the MessageBox.setActive() part is not working. Below is the code. import ...
Shubhro's user avatar
  • 75
2 votes
1 answer
2k views

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 ...
user avatar
0 votes
1 answer
95 views

var Distance; var Target = transform; var lookAtDistance = 25.0; var attackRange = 15.0; var moveSpeed = 5.0; var Damping = 6.0; function Update () { Distance = Vector3.Distance(Target.position, ...
Jon Bergeron's user avatar
0 votes
1 answer
1k views

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 ...
HawkSP's user avatar
  • 33
0 votes
0 answers
42 views

For my game in Unity 2017.2, I am trying to save the prefabs that I just bought in the games store (not IAP) and load them to a garage type scene. I was first thinking I could get the name of the ...
WokerHead's user avatar
  • 967
0 votes
1 answer
804 views

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) ...
Simpson G.'s user avatar
1 vote
2 answers
10k views

The problem is that I have two shaders. If I change between the shaders while the game is running it will not take effect. Only if I start the game with a current shader it will use the shader but not ...
Daniel Lip's user avatar
  • 11.5k
0 votes
1 answer
80 views

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") && ...
Mark Wilson's user avatar
1 vote
3 answers
10k views

(I saw a question like mine, but my case is different) I explain: I have a 2d game(side view), where players going around and hit each other with weapons like sword or hammer. I set ground on a ...
Orilious's user avatar
  • 329
0 votes
1 answer
72 views

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 ...
Randy Lee's user avatar
-1 votes
1 answer
2k views

I want to move an object with acceleration input in unity: if (...) transform.translate(vector2.right*speed); else if (...) transform.translate(vector2.left*speed); I don't know what the conditions ...
Ali Safari's user avatar
0 votes
1 answer
180 views

#pragma strict var target : Transform; function Start () { } function Update () { if(target.active){ gameObject.transform.position.x= target.transform.position.x; gameObject....
kiranswamy's user avatar
1 vote
1 answer
223 views

I have a waypoints script that I apply to an object. For example, on a character that goes from point to point and stops for a certain time and then continues to walk. How can I modify the code if I ...
Juraj Juraj's user avatar
3 votes
1 answer
1k views

I have recently taken an interest into unity, and as I guide a chose a playlist from youtube. I have installed the Unity 5.6.4 16 Oct, 2017 version as well. Now, I encounter an error when I try to ...
Cat's user avatar
  • 1,363
0 votes
1 answer
77 views

I am trying to play an audio clip defined on a audio source component but when I run the following code, nothing happens: #pragma strict var audioSource : AudioSource; function Start () { ...
ines's user avatar
  • 117
6 votes
1 answer
9k views

I notice that in MonoDevelop editor the auto correction for javascript it doesn't work . Does this mean that Unity is willing to abandon JS ? Can I use Java script language in Unity 2017.2 ?
Nour's user avatar
  • 63
0 votes
1 answer
170 views

I have this golfer animation. It is quite smooth movement ant the best I can find in golfer animation. But its movements are always the same pattern. For example, if I like to use the model to ...
batuman's user avatar
  • 7,346
1 vote
1 answer
1k views

I have a camera that I want to stay at all times at the same position as the player. I did this by making it a child of the player, since when I did it through a script the player got ahead of the ...
battlemage64's user avatar
13 votes
2 answers
21k views

I want to develop native android app in unity engine, and does not need to use physics, could it possible to disable physics engine for specific project in unity.
Muhammad Ameen's user avatar
-2 votes
1 answer
616 views

Some "long work" needs to be performed during game process. Obviously game freezes on 1-2 seconds when this work is being performed. So i put algorithm of "long work" to second thread and, as was ...
ANU CHEEKI BREEKI's user avatar
0 votes
1 answer
2k views

I'm coming across a roadblock on something I thought would be a relatively simple problem. I want to "roll" the camera on the z-axis by pressing the "Q" and "E" keys. Here is the code I've written, ...
JavascriptLoser's user avatar
0 votes
1 answer
101 views

I try to get on the mouse down work, I have find a example but its not work this is my error Assets/scripts/onclickx.js(13,5): BCE0044: expecting EOF, found '}'. This is my code import UnityEngine....
ines's user avatar
  • 117
0 votes
1 answer
278 views

I am trying to make a game, where a kid has an image (of grass, for example) and a card (a monster). The monster should appear on the grass only if the kid puts card on it, and disappears on removing. ...
WantToKnow's user avatar
  • 1,827
0 votes
2 answers
563 views

after trying to acces a variable in another Script of another GameObject out of a List, I get every time an Exception. The Main code looks like this: private var BombList = new List.<GameObject>...
Silly Scientists's user avatar
1 vote
1 answer
3k views

I am using Unity 2017.2.0b5. I tried to help somebody who asked a question about Unityscript few moments ago but I noticed that: Assets > Create > C# Script is present but Assets > Create > ...
Programmer's user avatar
  • 126k
1 vote
2 answers
70 views

I have a text file in project with some text data. Using below code I'm showing my data one line at a time when player click on a button (called NEXT). For some reason what I want to do is make a ...
Arman's user avatar
  • 31
0 votes
1 answer
123 views

I had installed Jenkins in network and making build successfully. I want to have authentication for my iPad app, developed with unity. I searched the plugin respective to this, but i can't find it. ...
Shweta's user avatar
  • 287
0 votes
1 answer
846 views

I tried to use Unity VideoCapture API, which is located inside UnityEngine.VR.WSA.WebCam namespace. In Editor mode I can play the scene without getting any error, but when I tried to build it for ...
user1814734's user avatar
1 vote
1 answer
1k views

When I try to edit a script in Unity, I keep getting this error: "Unable to open UnityEngine.UI.dll: Check external applications preferences." This also happens when I choose any other editor in the ...
Guille's user avatar
  • 380
0 votes
1 answer
442 views

I've decided to make a game with Unity + Node.js, and I'm trying to use a socket.io library with unityscript Here is my code so far: #pragma strict import System.Collections.Generic; import ...
fancy pants's user avatar
0 votes
1 answer
755 views

I have a unity project that I am building to an executable (windows x86). I have built the project previously and have made some changes to the project again that shows up in the unity editor and all ...
ceorron's user avatar
  • 1,266
0 votes
1 answer
3k views

I have been trying to find an aswer to this for hours. I am trying to get the button GameObject that accessed a function on one of my scripts. I just need to know which button accessed the script. ...
Andrew Friedman's user avatar
0 votes
1 answer
49 views

I have a target object (cube), and a fake mouse that I created from an object (sphere) to be controlled by gamepad joystick. I want to bring out another object (let say; sphere), when I push the ...
Caesaron's user avatar
2 votes
1 answer
5k views

I've updated the player settings API to be 4.6 as documented. But my project is still targeting 3.5. I also tried to manually update the csproj to 4.6 But after unity was opened it overrided it again ...
Tomer Peled's user avatar
  • 3,591
1 vote
2 answers
542 views

I'd like to draw the trajectory of an object that is moving circularly, but I do not know how to do it. Could you tell me a good way?
yn1043's user avatar
  • 588
0 votes
1 answer
1k views

In my Unity project, under a canvas, I created a blank UI Image. On the other hand, in the assets folder, I have multiple PNGs. I want the UI Image to be set as a random PNG from the folder via script....
kc.kc.kc's user avatar
1 vote
0 answers
818 views

I am not sure which repo is correct place to log this bug - Hello, I have just started development in AR / VR category and using ARToolkit with Unity. I created the most simple AR tracker with hiro. ...
Kaushik Ray's user avatar
-2 votes
1 answer
132 views

Having trouble describing what I'm looking for - essentially, I'm classed as a beginner at unity, I've only made artwork for games, never created the core myself. Preface: Here's game in a nutshell: ...
Andrew Lazarus's user avatar
32 votes
3 answers
64k views

I write a custom content fitter that is required for my custom layout. So, I need to control RectTransform.sizeDelta property when anchors aren't same but I can't get that shows this value. I don't ...
Denis Steinman's user avatar
0 votes
1 answer
233 views

Here's the problem, I have a unity-Android Game and every time I have to upload the update the only way I find send the update is by sending the whole APK again and this sucks because users have to ...
Simpson G.'s user avatar
0 votes
1 answer
872 views

I have a problem with a collider button: when I use the button on PC it works fine, but when I use it on mobile device the script is not working (but the collider should make a fade effect). Video ...
Andre Matiun's user avatar
-1 votes
2 answers
5k views

i have a horse with two animations ( run and walk ) in my scene normally the horse is walking using (walk) animation i need When the player approaches from the horse, the horse escapes using (run ) ...
Doctor Smith's user avatar
1 vote
0 answers
60 views

Look image for understend what I need I found how to determine the touch on the top or bottom but I need more detail I showed in the picture what I need. Give a hint please
Abs3akt's user avatar
  • 397
-3 votes
1 answer
66 views

var a; var b:Sprite; function Start () { a=GetComponent.<UI.Image>(); } function Clicked(){ a.SourceImage=b; } The function clicked is called on a OnClick event. The error I ...
coder_86's user avatar
  • 125
4 votes
2 answers
28k views

In Unity, it provides a function to get the instance of GameObject GetInstanceID () While the instance id could differ GameObjects, but the function to get GameObject by instance id ...
deadmarston's user avatar
1 vote
0 answers
79 views

I have a trigger zone that when the players enter the flashlight goes off. This part works. However when the player enters the second trigger zone the flashlight does not turn on again. Not sure ...
Allrounder's user avatar
0 votes
0 answers
78 views

It should give me a random value missing. It either gives me -.75 or .75 as missing however instead of any value from the list of outputs. var Rando : float; function Start () { Amount = Random....
Andrew Friedman's user avatar

1
2 3 4 5
28