Quantcast
Channel: Questions in topic: "javascript"
Browsing index pages (68 articles)
↧

Missing (Mono Script) when it really exists

I'm running into a very annoying issue. Come on Unity! I thought you were better than this. When there is a bug in a script, the script shows up as missing in the inspector. I just upgraded an old...

View Article


Upload json to WebGL Unity 2021

Hi to everyone, in my project i need to upload a json file straight from WebGL. I've read some other questions where the anser was by using JavaScript, but is it stil working fine on Unity 2021? Anyone...

View Article


Why does WASD move my player quicker than with a joystick?

For some reason, if you use a keyboard to move my player it's faster than a joystick. Can anyone help me? Here's my code: #pragma strict var moveSpeed : float; var clampRadius : float; var dashSpeed :...

View Article

Can I create a game using javascript only without c#? and how?

I learned javascript and I want to creat a game, I have heared that I can create a game in unity using javascript only without c#. Is it right? If yes, I want to know how in details.

View Article

How does .JSLIB file work?

I can't understand how to work with `.jslib` files. I don't understand the syntax of t$$anonymous$$s type of file. Also I couldn't find any easy explanation of it The problem started when I tried to...

View Article


Error of one of the elements when starting the program

I wrote the source code for a new application on IOS, there were no errors on the tests, but when I ran the code, an error appeared in this place, I don’t understand where and what’s wrong var t =...

View Article

Getting an error in unity WebGL on IOS when trying to emit something to...

Hello, I created a game with unity and WebGL. Everything works fine on every device except for iOS. For some reason when i try to emit some values from unity to a function in javascript IOS return me...

View Article

What is a “debugger” statement in JavaScript?

The debugger statement stops the execution of the code at a breakpoint in [JavaScript][1] and calls the debugging function. Also, the debugging statement fails to work without the availability of...

View Article


--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article


Calling a function from another function in webgl plugin

In my .jslib file I have multiple functions which returns string. Instead of writing the lines that convert the value to string over and over again, I tried to put that code in another function, and...

View Article

how to solve webgl.loader.js:1 Unable to parse Build/webgl.framework.js.br...

I have deployed an app in webgl from a storage account but I have problems with the cdn server configuration and it is not compressing I have problems with the accept-encoding: br![alt text][1] [1]:...

View Article

SHA512 JS -> C#

Is there any way that I can translate this JS Code Snippet: var contentHash = CryptoJS.SHA512(Json.stringify(requestBody)).toString(CryptoJS.enc.Hex); into C# language?

View Article

How to retrieve nested JSON variable - sendMessage WebGL

Hello! How can I retrieve a nested object in Unity with JsonUtility. I have something like this in javascript: grid = { type: "frame", layer_1: { "height": 100, "numberOfComponents": 3 }, layer_2: {...

View Article


How to create a .jslib file for unity webGl

I am trying to create a .jslib file but unable to do that with visual code . I am making a plugin for my java script functionality to communicate with each other.

View Article

Unity WebGL cannot load remote js source?

I want to call Google Sign in API on WebGL build but it never run into onload callback, because of that I cannot call any api of that lib. Does anyone know this issue?> Blockquote

View Article


Editing avatars using node.js

Hello everyone! I am a well experienced JS developer trying to work with unity for the first time. I'm trying to accomplish something using a JSON format to edit an avatar. Yet when I create a template...

View Article

HELP! Memory Leak issue - Game project crashes after 10 seconds

Hi, All the sudden I started getting these warnings in my project and now I cant even start my project anymore because it just crashes after about 10 sec. Internal: JobTempAlloc has allocations that...

View Article


why i need .Net 4.0 to change scripts???

why i need .Net 4.0 to edit scripts?

View Article

camera follows player in constant speed even in slow motion

Im working on a game in which the camera follows the player with the help of Vector3.SmoothDamp(). But when i trigger slow motion the camera is way to slow. I want the camera to feel constantly fast...

View Article

UnityScript for unique simpleJSON lists

What is the simplest way to save multiple lists of different variables in simpleJSON? Im just getting started with learning JSON and this is what I've figured out so far var Pets : List.; function...

View Article
Browsing index pages (68 articles)


Latest Images