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
0
votes
1
answer
444
views
Understanding transform.forward vs. Converting World Space Forward to Local Space for Ray Drawing
I'm working in Unity and trying to visualize the forward direction of a GameObject. I came across two approaches:
Using transform.forward:
...
0
votes
0
answers
490
views
Developing a game in Chromebook OS
I’m trying to develop a game in my Chromebook OS. I can’t find any programming languages I can write in my Chromebook terminal. My terminal won’t take any new programming characters because every time ...
-1
votes
1
answer
78
views
MonoBehaviour Wouldn't Work [duplicate]
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 ...
20
votes
2
answers
7k
views
Unity Method count exceed the limit of 64K
I just got an issue related to a 64k method in Unity so that's why I'm unable to build my project. It shows method limitation exceed the limit of 64k method count. So can anyone here help me out to ...
0
votes
1
answer
871
views
why is GetComponent<ICameraControl> returning null?
As you can see in the attached image below and the code, I have added a class that implements the interface ICameraControl attached to a ...
13
votes
3
answers
12k
views
How do C# and UnityScript differ in Unity development? [closed]
Other than the obvious language differences, how do UnityScript and C# differ when developing games in Unity3D?
Is there a noticable performance difference?
Is the UnityScript code packaged as-is? If ...
11
votes
3
answers
102k
views
Does Unity let you code in Java? [closed]
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 ...
1
vote
1
answer
2k
views
Unity target position never stops with Vector3.SmoothDamp
I've integrated Vector3.SmoothDamp method to have a more fluid and native movement between the character and his camera in Unity. The camera movement is perfectly ...
1
vote
3
answers
4k
views
How to move a object to a target point like sine wave in 2D world
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
...
0
votes
3
answers
3k
views
Inheritance - accessing child class values
I want to use the same variable for five different child classes. It is basically a boolean that is true when a player purchases an item(represented by a child class) and false when the player is yet ...
0
votes
2
answers
2k
views
Unity - change only z axis rotation to 0
I have a child where I want the rotation to work like (parentRot, parentRot, 0).
So first I set its ...
7
votes
2
answers
18k
views
Retrieve the original prefab from a game object
How would one proceed to retrieve the original prefab used for instantiating an object?
In the editor these two functions work :
...
3
votes
1
answer
15k
views
The value of VSync on vSync Count in Unity
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 ...
1
vote
1
answer
3k
views
Random Range Without Duplicates
I have an array of gameobjects (some questions) if player hit some triggers a question from the array is displayed randomly, I want to avoid duplication of displaying questions.
...
0
votes
1
answer
2k
views
How to raycast from a UI element
How do I raycast from a UI object?
I have tried
Ray ray;
Camera cam;
Transform obj; //UI object
ray = cam.ViewportPointToRay(obj.position);
AND
...