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

Jump Issue :(

Dear all, I am a new user of unity and trying to make a very simple game, my issue is, , i want to make a player jumps when i click the left click on mouse or jump button, As per code below using...

View Article


How to Get a Script Component and call a function from another script?

Title. ( Also In JS please, thx)

View Article


Help please guys my game almost finished please

Here is the mechanism i want When Male "Player" enters trigger, it changes into Female "Player" *Basicly Disabling The Male Prefab (Defult Prefab for Player), Enabling Female Prefab NOTE : Male and...

View Article

[JavaScript] I am making a clicker game(Like cookie clicker) and having...

I want my game to have an infinite upgrade system where you click the button it upgrades how much money you make and then it cost more to buy the next one, I already have everything I need in...

View Article

look at script

I have no experience in unity and java, and i search, but i dont found nothing about this. I want a script like: public var player : Transform; public var object : Transform; if(player.lookat(object))...

View Article


Bonjour, j'ai l'erreur : "Assets/deplacement.js(13,24): UCE0001: ';'...

Voici le script: function Start () { } function Update () { Vector3 move = new Vector3(); if(Input.GetKey(KeyCode.LeftArrow)) move.x -= 0.1f; if(Input.GetKey(KeyCode.RightArrow)) move.x += 0.1f;...

View Article

Destroy Object on Collision (with di sound)

I have a problem with the sound. The script I created is no error. But the player destroys the object not producing sound.. PLEASEEE HELP :((

View Article

Why ExecuteInEditMode Always Causes NullReferenceException Errors Even In...

I'm Very Disappointed In Using ExecuteInEditMode(), Whenever I'm Dealing With Arrays And Lengths, The ExecuteInEditMode() Will Make Everything Worse!! When Checking For Array Length:...

View Article


How to make a text editor in unity ? Please help me urgently

Please pleaseeeeeee help me ! I TRIED HTML AND JAVASCRIPT BUT THE 3D MODELS WONOT LOAD SO I WENT TO UNITY AND I CANOT EMBED HTML because it seeems that there are no more frameworks that supports...

View Article


Controling chromatic abervation

I need to make a script that turns chromatic aberration on when I push a button.

View Article

Could someone translate these to c#?

var ani : Animator; var sound: AudioClip; function Start () { ani.enabled = false; } function OnTriggerEnter () { AudioSource.PlayClipAtPoint(sound, transform.position); ani.enabled = true;...

View Article

Issue with Raycast hit.distance Variables Reseting Itself

Alright. I am making a procedural and randomly generated city and I am trying to eliminate road/building overlaps by using Raycasts to determine if the next generated piece of road is going to overlap...

View Article

NullReferenceException: Object reference not set to an instance of an object...

This error has been bugging me... I know its probably a simple solution but I just cant see it :'( NullReferenceException: Object reference not set to an instance of an object Vehicle Controls.Start ()...

View Article


Javascript Object reference not set to instance of an object - Raycasting

Hi all, I am a begginer at Unity so sorry if this seems like a repeat of other questions or if it's unclear but I have been staring at my code for about an hour now and looking all over the place for...

View Article

Need help in translating javascript code into c#.

function DisableRagdoll() { var rb:Rigidbody; for (rb in GetComponentsInChildren(Rigidbody)) { rb.enabled = false; } }

View Article


If statement not working

Hello, I'm having trouble getting my if statements to start. if(Wave1 > 0) { Debug.Log("Check"); } Here I want it when Wave1 is set to the value of 1, it will Debug.Log("Check"); function...

View Article

How to change the virtual joystick Input direction depending on camera...

I have a scene set up where the player moves and rotates with Virtual Joystick Input. I have button which rotates the camera to the back of my player at that point I want to change the joystick input...

View Article


_malloc is not defined in Unity 2017 webGL Player

Hi all, I'm working on a webGL project and I have a function where I send a JSON array from an external javascript to the unity player. I followed the instructions [in the Unity 5.6 manual][1] using...

View Article

Unity WebGL is resetting its size upon opening a specific scene. How do I...

I'm trying to make a Unity WebGL build, and I need it to fit a specific dimension so scroll bars don't appear. I had the player settings define the width and height as 960x540, and when the build...

View Article

It is not possible to invoke an expression of type 'UnityEngine.Vector3'.

I know this has probably already been answered, but I still can't figure this out. I've been running this code: #pragma strict public var target : Transform; function Update () { transform.rotation.x =...

View Article
Browsing all 1875 articles
Browse latest View live


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