Wrong GameObject activates
I am at one of those moments in my code that pisses me off so much. Let me tell you what it's *supposed* to do: Some text appears. A question with an A/B choice appears. You choose A or B. This...
View Articlehow to save a GameObject with different properties multiple times
My situation: I am making an app which is supposed to save events like: an activity, from when, to when, additional notes (for now only that), those are my inputs. I already saved those onto variables....
View ArticleIndex out of bounds even tho it shouldnt be [Javascript]
Hello! I have a problem with part of my programm. I was trying to save instances of a GameObject into an array for later which worked just fine. Now i wanted to iterate though the array with a "for"...
View ArticleInstantiate object in for loop with array
So i am instantiating a GameObject which works just fine. Now i want to be able to save different instances of that GameObject and save those in an array and then display those via a for loop. For some...
View ArticleParticle alpha blended proplem please help me
hello i have this hair i made with an alpha texture to it "using standard shader Particles/Alpha Blended" however when i get close to the hair it looks perfect and fine as wanted But the far points of...
View ArticleSpawn a dot for every number typed?
Hello, I'm trying to make a "Number Visualizer", a program that spawns a dot for every number typed in a box. For example, if the user typed in 1,000, 1,000 dots would be spawned in a contained area,...
View ArticleChanging input sensitivity via scripting (JS)
This.feels.so.noob. Ok, so I already Google'd this, and didn't get an answer I'm satisfied with, that's why I'm bringing it here. Here's my problem: I have a menu script that utilizes the "Vertical"...
View ArticleWebGL browser error after run and built Unity+ARToolkit project
![alt text][1] [1]: /storage/temp/111061-screenshot-31.png I get this error when I open the index.html resulted after WebGL build. I'm assuming it has something to do with the ARToolkit import, but I...
View ArticleCalling a function via button from instance of prefab
Hello! I will try to put this as simple as possible. I am creating an instance of a prefab which has buttons on it. If i use the "onClick()" function in the inspector the instnace wont have the script...
View ArticleHow do you implement Unity Ads using Javascript ?
There are many C# examples of Unity Ads implementation but I did not find any using Javascript.
View Articlelooking how to test this code, I'm very new to javascript and not exactly...
Hey guys, I'm wondering how I would test this function. I'm pretty new to JS so it means a lot for the help. an explanation would be good aswell here is the code: function RegCheck(var regions, var...
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 ArticleHow do I code this Javascript?,What is the Javascript code to move to...
I am new to Javascript coding. I would like to know how to move to a specified page based on the user's chosen button. For example: There are 2 buttons: #yes and #no If I choose #yes, there is a box...
View ArticleBCE0019 "enabled" is not a member of "Object"(On JavaScript Script)
Basically, I am making a psychology game and I want to make it so you can't collide with an object ahead of you until you collide with one before it. Therefore I want to turn off MeshCollider so they...
View ArticleUsing C# and JS together, List types won't agree
I'm trying to convert a medium sized JS game into C# because JS support is sunsetting in the near future. I'm trying to make sure the game is working as I convert so I'm doing it file by file. I'm...
View ArticleOn trigger turn off particles and lights make room dark,On trigger by FPC...
https://gyazo.com/cb237ff1aaaa812d7fbaf28a3ecff797 This is a temple underground normally it is pitch black as its a horror game, when you get to the top of the temple there is fire lighting up the room...
View ArticleHow to add a " Achievement unlocked " text and a collectible after completing...
I have 4 objectives in my game and when I complete them I want to add a text displaying a reward and an item but I have difficulties creating the script (java/c# preferred).Any help would be...
View ArticleTrying to get animation to work. Problem with JS.
Hi. I'm asking this because I am a complete beginner to unity and honestly have no idea what to do. I want to add an animation to a weapon that a character in my game will hold, however the javascript...
View ArticleSyntax Help: JS ---> Reference a variable in another JS script
Help. 5 hours later, reading many, many posts later, and I cannot get the syntax correct, for referencing a variable from one JS script to another. ( I know how to do this in C#, but need to do this...
View Article