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

Browser interaction to Unity

I have been setting up a multiplayer WebSocket system using socket.io within the web browser. So far I have been successfully able to send data between clients and a server using socket.io and even...

View Article


World Generation with Interesting Terrain

Okay, so I'm in a bit of a tricky situation. I'm making a game which some might describe as a Minecraft ripoff, and Im having some trouble with world generation. As it stands, I can procedurally...

View Article


Vertical mouse input inverted when player is turned around

Okay, sorry to bother everyone with such a simple issue, but I can't find a solution for it, and I figured I should get some help before I break my back on it. Basically, I'm making a first person...

View Article

The problem of Enemy scale when he follow the player (script) . How to fix?

Hello , First , let's be clear ... I have a problem and I have somethings i need to get them done . let's start give Details , i use Unity 5.6.3p2 Personal on Windows 8.1 pro 32 bit (i cannot upgrade...

View Article

cast a ray to hit an object in the center of the screen

Okay, I need to set up a ray so that when it is cast from the camera it will hit/destroy what is currently in the center of the screen, and nothing else along the way. Currently, I can cast a ray from...

View Article


C # script taking values from one object and modifying another.

Hi, I really new to Unity and scripting, I've never coded before and also never posted questions before because most of the time after hard research I would find answers on the web, but this is no...

View Article

JSON to object

I wanted to be able to create JSON strings to send to a server and upon being received later by a client parse them into Unity Objects. I was wondering if it is possible to create a blank object and...

View Article

Script writing a note to player save on their desktops

I'm currently making a horror game which force exits your game bringing you to your desktop. And I'm trying to figure out a way to get a script to write and save a note to the players desktop, which...

View Article


Controlling Players Mouse

Is it even possible to code a script that moves the mouse cursor by its own? And if so I would very much like to see how it can be done :)

View Article


Weird Behaviour in Visual Studio 2017

Hello, I was making a script in Visual Studio when all of a sudden it began to do this thing: ![alt text][1] Instead of the usual: ![alt text][2] [1]: /storage/temp/121215-hmm.png [2]:...

View Article

How to make transparent background of body when move cursor to the drop down...

just like amazon did.,

View Article

Passing array of strings to native JavaScript plugin on WebGL

I'm working on integrating an API on a WebGL project, and I need to pass an array of strings to a native plugin. Here's a snippet of my native plugin code in **JavaScript**: WebGetValues:...

View Article

Nested eval and generated eval fails on windows

Hi. Nesting eval() or trying to call eval form generated code fails with the following error on windows: UnityScript.Scripting.CompilationErrorsException: script(1,1): BCE0167:...

View Article


Trying to move an object between two points

Can you please help me arrange this correctly... #pragma strict public var speed = 5f; function Start () { } function Update () { transform.position.x = (Mathf.PingPong (Time.time * speed, 5.1, 0.9)); }

View Article

Movement in cycles?

If I use this code in two obstacles, one with the delay and without it, the delayed one seems to teleport so it has the same value on the x-axis with the other one. Any idea why this happens? #pragma...

View Article


Toggle ON/OFF MaterialChange

Pretty basic question but i can't seem to get it to work. I want to change the material of an object when it's stored in the array safedArray. I also want the material to change back when it's not...

View Article

Communication between WebGL and .jslib

As mentioned in the doc [here][1] Is there any way to communicate between the .jslib script and the .html of the WebGL build? How do i reference from the script to the .html file? [1]:...

View Article


JavaScript to C#

Hello I was watching a old tutorial & they wrote code in JavaScript & this script is what I need for my game I need help converting JavaScript to c# I tried doing it myself but I get multiple...

View Article

WebGL on Firefox Linux displays InvalidStateError,WebGL on Linux Firefox...

I have found an issue with 2018.2.4 where running a webgl build on firefox and linux, where the following error message appears: "An error occurred running the Unity content on this page. See your...

View Article

Saving & Loading the scene (or at least one array) via Javascript

Hey everyone, I'm working on a simple minecraft-reminiscent Sandbox game. As we all know, a key part of these games is the player being able to edit the world around them. This requires being able to...

View Article
Browsing all 1875 articles
Browse latest View live


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