Quantcast
Channel: Questions in topic: "javascipt"
Browsing all 1875 articles
Browse latest View live
↧

Help change the subject of this Script

i have a script that instaniate an object for examlpe a "cube" from the project to spawn at the mouse position i want to change to make the script " move an already exist in the hierarchy to the mouse...

View Article


How do you change UI Text to an int?

I am trying to make a statistic menu in my game which will show you stats about your progress in the game. I am trying to make a text that will tell you how much time you have played the game. #pragma...

View Article


Publishing my Game with my own website

Well, I've recently been thinking about making one of those clicker games and such! I want to know how to put your game on it's own website examples are: http://www.filltheoceans.com/ or search "Fill...

View Article

Proplem with position reset script of certain object

hello i want to achive a script when i press V the object no matter how far it went it gets back to the original position point near my player var startPosition : Vector3; function Awake () {...

View Article

How to make speed changed in js

i know, this is very simple. First off, this is not going to be attached to my Enemy but i want to know if its possible to change the navmeshspeed from a script to my enemy. It is named "OGRE". I need...

View Article


How to replace text with something else..

I know this might be super simple. Here is my code so far: #pragma strict static var currentScore : int = 0; var offsetX : float = 22.43; var offsetY : float = 376.6; var sizeX : float = 148.86; var...

View Article

Triggering audio in javascript

I need to know how to play a audioclip/audiosource in javascript. pleeeeasseee plepleplpalepallplwpelpelplse i need to know how. Ive been searching but all them come with errors.

View Article

Hello all! I have a question regarding the cretion of an animation with...

Create animation with JavaScript within the 1000x800 canvas element according to the following description: you will draw on the left side of Canvas a cowboy with a gun. Once a page is loaded, a bullet...

View Article


In a test with ten questions, only the first question gets asked

Hello everyone, So, I think I might just need a fresh set of eyes for this one. I've made a simple dialogue script with a section for the player to make A/B choices. (The first part is straight...

View Article


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 Article

how 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 Article

Index 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 Article

Instantiate 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 Article


Particle 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 Article

Spawn 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 Article


Changing 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 Article

WebGL 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 Article


Calling 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 Article

How 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 Article

WebGL in Javafx browser

Is there any way to run unity3d webgl in Javafx browser?

View Article
Browsing all 1875 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>