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.
318 questions
-1
votes
1
answer
399
views
Make Gameobject Stand On Surface Facing Certain Direction
I want to make a biped character stand on any surface I click on.
Surfaces have up vectors of any of positive or negative X,Y,Z. So imagine a cube with each face being a gameobject whose up vector ...
4
votes
1
answer
14k
views
How to get all keys and values of the PlayerPrefs in Unity?
I'm storing player name and scores in the Unity PlayerPrefs. I'd like to list all the names and scores stored in PlayerPrefs and display a high score page:
Is it possible to display all the keys ...
0
votes
2
answers
3k
views
How to display a GUI text at run time in unity?
I'd like to display a GUI text at run time in my game for a second, so I want to know if it's possible to add or remove a GUI label to the scene at run time?
0
votes
1
answer
1k
views
Making a new instantiated prefab as a child for existing GameObject
I've been searched about how to make these fruit to move as the basket movement if it collided with it, and I've been found that if I want to perform this I've to let these fruit to be a child to the ...
1
vote
2
answers
4k
views
How do you make the first person object the main camera?
How can a first person object character be made to be the primary viewing camera in unityscript? Do I remove the main camera? or just turn one or the other on/off?
-2
votes
1
answer
291
views
How to keep a GameObject from dropping?
I am applying the following script to first person object:
...
-2
votes
2
answers
535
views
No appropriate version of 'UnityEngine.Transform.RotateAround' for the argument list
Assets/CircularOrbit.js(11,26): BCE0023: No appropriate version of 'UnityEngine.Transform.RotateAround' for the argument list '(UnityEngine.Vector3, System.Type, float)' was found.
Here is what I ...
2
votes
2
answers
14k
views
How do you reference one game object from another?
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 ...
1
vote
1
answer
949
views
How to circle an uneven object with Camera at a fixed distance?
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 ...
1
vote
4
answers
2k
views
sample project that mix unityscript and c#
I like the simplicity of unityscript, at same time I also like the plenty of c# library and open source projects.
I prefer to put my model/controller/logic flow in unityscript using standard unity3d ...
-2
votes
2
answers
292
views
UnityScript generating UnityEngine error
I have the following code set out for a simple animation in Unity:
...
0
votes
1
answer
3k
views
Detecting if "Wall" To The Left or Right Of Player Unity3D
I am working on a 3D Platformer in Unity3D and I need to prevent the player from going through walls. The movement for my player works like this:
(A bird-eye-view representation)The areas the player ...
1
vote
2
answers
10k
views
Unity3d how to show an image downloaded from HTTP
I am bit new to Unity3d. I am fine with any solution either of the scripts.
Can we render an image in unity3d (which we have to download from HTTP path)? If yes then how or do you have any reference?
...
0
votes
1
answer
1k
views
Quit the application when clicking cancel button of Alert View in C#
Can someone guide me as to how can I make an application quit when you press the cancel button of an Alert View in C# code?
Thanks
I forgot to add that I am trying to quit application on clicking ok ...
2
votes
1
answer
2k
views
Translating a terrains position using input in Unity 3D C#
I am trying to make a terrain in Unity move, but im having trouble. Here's the code i have.
...
0
votes
1
answer
1k
views
Unity3D GUILayout Window Wont Show Components
I am fairly new to Unity, but picking things up quick. This is actually one of the first problems I have come across that has me stumped.
I am trying to print a good amount of components onto my GUI ...
0
votes
1
answer
615
views
No intellisense on my classes
I've been using Monodevelop's current version and Unity 4.
I don't get intellisense on the classes I've created but I do have intellisense on classes that are in Unity's framework. Bug or its just as ...
4
votes
4
answers
4k
views
Unity: Assigning a key to perform an action in the inspector
I am trying to write a simple piece of code in JavaScript where a button toggles the activation of a shield, by dragging a prefab with ...