Skip to main content

Questions tagged [unityscript]

STOP: this is probably not the tag you want. UnityScript is a deprecated language. For new questions about scripting in Unity, you probably want the tags "Unity" and "C#". Only use this tag for questions about legacy code written in UnityScript, the old JavaScript-like scripting language available until Unity version 2017.2.

Filter by
Sorted by
Tagged with
11 votes
3 answers
102k views

I am fairly new to Unity3D experience , but I have a very good knowledge of Java and Android development. I am really confused that if Java is at all needed for developing android applications? I read ...
Aman Grover's user avatar
1 vote
1 answer
3k views

My code to detect left mouse click is not working Input.GetMouseButtonDown(0) and Input.GetMouseButtonUp(0). But same code for Input.GetMouseButton(0) is working. Code: ...
Abhinay Singh Negi's user avatar
2 votes
1 answer
1k views

In my script below I'm using horizontal and vertical swipe gesture to move the character but both gestures are called on a single touch. ...
user75648's user avatar
  • 181
7 votes
5 answers
6k views

I made a game with Unity but the size of .apk file got so large, it is about 70mb... Is there some way that I can compress my apk file?
pramitafirnanda's user avatar
5 votes
1 answer
10k views

Raycasting in rows is a common practice. Is using the Physics 2D BoxCast function a good alternative to using multiple raycasts spread out (an example use being collision detection in a custom ...
James Hurley's user avatar
4 votes
3 answers
5k views

I know some differences between Update() and FixedUpdate() and recently I have used both functions in one script. The code is ...
Raminlich's user avatar
  • 128
3 votes
1 answer
15k views

In Unity, we can set the vSync value as "No sync" = 0, "Every V Blank" (60 fps) = 1 and "Every Second V Blank" (30 fps) = 2. But in the Unity Quality Setting documentation , it's written the vSync ...
raisa_'s user avatar
  • 167
3 votes
1 answer
4k views

Everytime i do import custom unity package file, I alwasy get Messy Folder and files in root of Asset Folder. Any Idea how to solve this ? Many Thanks in advance.....
questionasker's user avatar
3 votes
1 answer
6k views

I am using Visual Studio 2013 pro and Unity 4.6. Whenever I write scripts (javascript or c#) for anything and open it up in Visual Studio, I don't get IntelliSense. How to fix this issue?
AVIK DUTTA's user avatar
3 votes
1 answer
9k views

I am currently trying out Unity 3D and I've run into a problem. The problem is I have a car that moves along a road and then when it reaches a corner I would like it to turn the corner and have the ...
MotoSV's user avatar
  • 141
3 votes
1 answer
2k views

i am android programmer and i want control button input in android for example i made a game that when you press back button in android mobile nothing happens but i want quite from game. This is how ...
Seyed Morteza Kamali's user avatar
2 votes
2 answers
14k views

I am trying to reference a game object that was created in the editor and added to the scene (not created dynamically). How can I reference this object in a script added to another gameobject? For ...
gitright's user avatar
1 vote
1 answer
1k views

I'm trying to get a simple cannon to rotate to point at the mouse, but I only want it to follow the mouse for 180 degrees and then stop following the mouse, and pick up again when the player re-enters ...
Ultra Gamer's user avatar
1 vote
2 answers
2k views

So i'm using Kinect with unity to track user's hand movements, and let the user's hand act as a mouse, I have written the code to detect a collision between a button (sprite object) and the hand ...
Sweta Dwivedi's user avatar
1 vote
3 answers
4k views

I want to move my gameobject to move point A to target point B like sine wave, I have used Vector2.Lerp but its just straight line. so far I tried many ways and I managed this ...
Shohanur Rahaman's user avatar
1 vote
1 answer
948 views

Unity3d. I am trying to move an object with Camera around a fixed terrain (Mountain), while staying an set distance from its edge. I have the camera set to lookAt the mountain, and I want to circle ...
gitright's user avatar
0 votes
2 answers
105 views

When my character died it displays gameover and goes back to main menu, then if I clicked play I can see my character however I can't make it move anymore. Any suggestions? For game over: ...
Aika's user avatar
  • 1
0 votes
1 answer
1k views

I would like to know if Rigidbody2D's can detect collisions with 3D Box colliders and/or normal rigidbodies. I seem to have a ...
BiiX's user avatar
  • 499
0 votes
1 answer
525 views

I have used pythagoras to give the bullet a velocity in the bullet class. Velocity is applied when Instantiated(); ...
Lonchenzo's user avatar
-1 votes
2 answers
182 views

I want to know is it possible to access functions of object like Start, Update,OncollisionEnter of other objects class in another class. if the answer is yes please tell me how can i do that. Thank ...
virtouso's user avatar
  • 2,680
-1 votes
1 answer
78 views

I was writing the character controller for my player character, but Unity said that there was no mono behavior script in the file I'd written the file right and I included the mono behavior ...
INDO_GEMENG's user avatar
-2 votes
1 answer
291 views

I am applying the following script to first person object: ...
gitright's user avatar