JS NullReferenceException: Object reference not set to an instance of an object
Hi everyone. Well, i'm trying to make a game with RPG elements which the player have to select 3 characters, one of each type (Fighter, Especialist, Caster), but i'm having trouble trying to make the...
View ArticleNoob Here... Can you please give Script for moving a object into random...
![alt text][1]*Please check the attachment problem.png* To clear the solution of my problem.. [1]: /storage/temp/71993-problem.png
View ArticleMinecraft world generation in JavaScript
Okay so I have been trying for quite a while to generate a Minecraft like terrain using JavaScript, but I have had no success. I've followed numerous tutorials on this but they are all in C#, and I'm a...
View ArticleFind Gameobjects component CamSmoothFollow target in JAVA
Hello Unity Community, I want to find a Gameobject which has a javascript named CamSmoothFollow on it and i want to change his target to a transform named CameraTarget at start so i made this...
View ArticleWarnings in Java
So i'm kinda new to the entire scripting world and i'm trying to read up on it and follow tutorials, i have tried to make a few easy scripts myself just to test it out, but no matter what i write i...
View ArticleDisable the previous variable?
I have a script that cycles through an array. When an item in an array is selected I enabled it: mods[arrayPos].GetComponent(IndividualMods).enabled = true; Now, when I select the next item in the...
View ArticleReturn link from website?
Is it possible to have Unity return a specific link from a website as a string? I was thinking of having it pick a website and then grab a link from that site.
View ArticleUI Text Component
Can someone please explain how to use this in a javascript script? The original post was here http://answers.unity3d.com/questions/777335/46-ui-changing-the-text-component-via-script.html and I was...
View ArticleVariable value not changing when using OnTriggerStay()
Hey guys, For some reason my papers variable will not change when I press a key within OnTriggerStay() The two gameobjects carry out a function, but the variable does not. function OnTriggerStay(Col :...
View ArticleUnity get script without know type name
I have a GameObject with a script called Savable.js attached now Savable has a public variable called scriptWithFunctions. This variable is in the inspector and I want to be able to drag any script on...
View ArticleHow to check an item's index in an array?
I have a script that scrolls through the numbers 1, 2 and 3. I want to make this so that when the item's index matches with the number, it gets enabled. otherwise, it is disabled. I can enable stuff no...
View Articleplay sound on button enter in javascript
hey guys I'm a big noob in unity and I am trying really hard to learn but I don't know how to trigger sound on movement key entry any help could be really helpful #pragma strict var forwardRate : float...
View ArticleIs Unity 3D easy to use for beginners?
I'm making a game with my group for our English Project. I've done some beginner courses on Code.org a few years ago and currently I'm using Game Salad to make the game. I've have had some progress but...
View Article(WebGL) Activate Unity Functions with HTML/Javascript
I know similar questions to this have been asked before, but after following other answers/examples exactly, I still cannot get this working. According to...
View ArticleHow to use an implicit generic list as a parameter?
I am using JavaScript and I want to write a function that can use a generic list of any type as a parameter. static function ImplicitFunction(myList:List.) { //code etc return; } How can I go about...
View ArticleJavaScript Play Audiosource Problem
I must be doing something wrong and am sure there is a simple solution but I've been searching for hours and every answer I find either throws up errors or Unity tries to update the script and fails. I...
View ArticleTranslate C# into Javascript
Hey guys! I am trying to translate a c# to javascript, but i find it very hard to do this. I have tried multiple times, but i had no luck. I would appreciate it if someone could help me. C#: using...
View ArticlePass mouseevents from Iframe to unity application (WebGL)
In my programm I have detailwindows that can be opened and that contains information such as a diagram which shows different information. This diagramm exists in form of html-code that contains...
View ArticleAccess script with different names
For the equipment of my project, I need the basic script to access the equipment effect script. Now, the basic equipment script is always the same, while the effect script has everytime another name...
View ArticleUnity3d Save Gameobject as Prefab Building Problem Android
Hi Unity Community, it´s me again :) I just want to save my gameobject in my scene as prefab and i have this javascript which works BUT, if i try to build my android game i get errors:...
View Article