Top "Unityscript" questions

DO NOT use this tag to describe Unity scripts which are written in C#! UnityScript is a separate language and should be used only on questions explicitly using that language.

Why does Resources.Load <Sprite> return null?

My project has multiple sprites located in Assets\Sprites which I want to load using C# script. I have tested …

unity3d unityscript
How to make game object transparent in unity

In my game I want to make the player object transparent for 2 seconds by scripting at run time if the …

unity3d unityscript
Raycasting to find mouseclick on Object in unity 2d games

I am trying to delete the object on which the mouse is clicked. I am making a 2D game using …

unity3d unityscript
How to set the font size of text in Unity?

How can I make the size of the font in a label larger? I used this function to display the …

unity3d unityscript
Display live camera feed in Unity

I have a question regarding Unity. I hope this hasn't been answered before. I want to connect a Camera (like …

c# unity3d unityscript
How to Prevent RigidBody from passing through other colliders

I've got a coin RigidBody and walls around it with box colliders. For trial purpose I've applied the following code …

unity3d game-physics unityscript rigid-bodies
Scale GameObject in Unity

How can I increase / decrease the size of objects in Unity? Example: public GameObject sprite; public float scale = 2.0f; void …

c# unity3d unityscript
How to calculate sizeDelta in RectTransform?

I write a custom content fitter that is required for my custom layout. So, I need to control RectTransform.sizeDelta …

unity3d unityscript unity3d-ui
How to detect touch on a game object

I'm developing a game on Unity for iOS devices. I've implemented the following code for touch: void Update () { ApplyForce (); } void …

ios touch unity3d unityscript
What is the best script language for Unity3D

I am starting with game dev using Unity3d and I can see there's 3 supported languages for creating scripts: C#, …

c# compiler-construction unity3d unityscript boo