AudioSource.Stop not working
This is my script: @script RequireComponent(AudioSource) function Update(){Upudate();} function Upudate(){ if (Input.GetKeyDown("1")) { var audio: AudioSource = GetComponent.(); audio.Play();}//plays...
View ArticleDoes the Unity is willing to abandon JS ?
i notice that in MonoDevelop editor the auto correction for javascript it doesnt work . Does this mean that Unity is willing to abandon JS ? can i use Java script language in Unity 2017.2 ?
View ArticleHow to make two objects mimic each other?
I'm trying to make two rigidbodies mimic each other, if objectA moves forward, ObjectB will move forward the same direction and distance too, if objectA rotates, objectB will rotate too and viceversa,...
View ArticleWhat's the best way to convert a large project (lots of js files) to C#?
I have a large project. I want to upgrade all javascript to c# as automatically as possible and without re-linking gameobjects etc. The reason is that the project will continue on to further games, so...
View ArticleHealth Script
Hello, I’m not really sure what I should do to make a health script. I would like it so that it translates to a in game UI health bar too! If anyone can help me it would be greatly appreciated. Thanks...
View ArticleProblem with simple JavaScript, No appropriate version of...
Problem with this script, am I just really stupid because I can't find the problem. #pragma strict var Health : int; var explosion : GameObject; var target : Transform; function DeductPoints (Damage :...
View Articlejavascript gone
hey everyone, i downloaded the newest version of unity and the java script option has gone. when ever i click on "create script" only c# shows up. and i can only code in java. where has it gone? can...
View Articlecalling c# Method from javascript Script !!
Hello dears .. I want to call this static method from a java script code .. or calling a variable from javascript Code , How i can do it please ? public class MakeRadarObject : MonoBehaviour { void...
View ArticlePromise from jslib to c#
I have an issue getting data from my Firebase database. I've written a jslib which can read and write data in the database. My issue is that the function to read from the database doesn't return...
View ArticleUnity is not building Solution Project For Unityscript
Hello everyone, I upgraded to Unity 2017.1.0f3 but it not builds a unityscript project for MonoDevelop or VS. So i cant edit or use it.When i select it in any js in project tab,it says "No...
View ArticleShould I need to learn drawing beside programming?
Should I need to learn drawing before start using unity? I don't have money to hire a game designer what i can do is draw my own characters and sets.Is this common that some draw and code the animation...
View ArticleCalculate distance between player and object
Hello, I made a script to pick items up. I'm wondering if anyone can help me add some sort pf thing so that the script can detect how far away the player is. Basically so you can't pick the items up...
View ArticleI need help with this script. Can't figure out my it isn't working.,Can't get...
I am simply trying to make a cube go from one place to another and then be destroyed. I am new to JavaScript. Thank you for your help. Here is the script: function Start () { } function Update () {...
View Article';' expected. Insert a semicolon at the end. Already have one
Not sure what is happening, here's my script. Happen on "float dist" line. #pragma strict var item : GameObject; function Start () { gameObject.transform.localRotation = Quaternion.Euler(0,0,0); }...
View ArticleOne big script or lots of small ones?
Is there any real difference in efficiency or optimization between using one really big script and lots of really small ones?
View ArticleHow to make text bigger in javascript code?
I'm trying to make an item counter for my little game but the text is so small compared to the timer I have. The font size of my timer is 20. How can I make my item counter text bigger? I used this...
View ArticleUnity Web Player: Access Denied
IE11 & WebGL - Yes I know IE11 doesn't technically support the full WebGL (Just experimental). I've already suppressed the popup saying "your browser doesn't support webgl" but am immediately hit...
View ArticleI can not see in the project - Create the JavaScript file
I can not see in the project - Create the JavaScript file
View Articlehow can i do a headshot with a rigidbody bullet?
hey everyone, im using my computer to type this so apologies for any spelling errors. anyway, im making my game. and it is going well, but i thought it would be alot more realistic with head shots...
View Article(C# and Java)Unable to give the Damage from enemy bullet script to Player...
I want to give the Damage from enemy`s bullet script to Player Health, but it showed me this error :> Assets/Tactical Shooter AI/Tactical AI/Csharp/Damage Scripts/BulletScript.cs(15,3): error...
View Article