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

UnityScript: BCE0048: Type 'ScriptFileName' does not support slicing.

**Hi Guys, I have a mistake "slicing" an class variable. For better understanding I created a test file, trying to help you guys figuring out that problem.** Code explanation: There are two classes...

View Article


Script Needs To Derive From MonoBehaviour,JS Script needs to derive from...

Hi, I am following a tutorial that uses javascript to make a cars controls active after a countdown, I have used the exact same code as in the tutorial but when i try to add it to an object i get an...

View Article


After trying to build, receiving compiler errors from Third Party javascript...

I have a Unity project that was working find on my relatively new machine until I tried to Build it. Not only did the Build fail, the editor is not letting me test the game because the Third Part...

View Article

Is there a way to clear all the PlayerPrefs with names that start with a...

Basically title. I'm making a sandbox game where I'm using PlayerPrefs to store the positions of individual blocks. The player has the option to "delete" any of their worlds, and when this happens, I...

View Article

How to put JavaScript in your assets and NOT have it compiled?

It use to be you could put .js files in Assets/WebPlayerTemplates and Unity would not try to compile them as they were meant for the browser, not for unity. As of 2018.2.7F1 that no longer seems to...

View Article


Is there a way to add Javascript files to an assetbundle?

I want to include some JS & Html files to the Assetbundle, so I can load them in a webview (UniWebView). Html files works fine, but I got some problems including the JS files. Unity tries to...

View Article

Error check runs on Javascript of StreamingAssets

In Unity 2018.2.8 of MacOS 10.13.6 we are putting Javascript files in StreamingAssets. Error checking runs on Javascript files and can not be compiled. Is something wrong with the setting? Thanks !!

View Article

Get google account on webgl

Hi there, I am making a game for my school Latin department. The school has just recently bought a load of Chromebooks completely messing up my game! After many hours of research I've decided on just...

View Article


Music repeats when going back to mainmenu/scene 0

I have been using different scripts to make the bg music on selected scenes from answers.unity then i got a UnityJavaScript here...

View Article


Printing "console.log" from an index.html file

I am accessing an HTML file to `My Documents/Company Name/` directory. I made a scene that allows the user to code JavaScript to their liking with the SimpleWebBrowser Asset (open-source Unity browser...

View Article

Printing "console.log" from an index.html file

I am accessing an HTML file to `My Documents/Company Name/` directory. I made a scene that allows the user to code JavaScript to their liking with the SimpleWebBrowser Asset (open-source Unity browser...

View Article

Error) DataReader already active on this command

An error occurred while attempting to create a DB through the Unity. Below is a dll file created by referring to "Mono.Data.Sqlite". public class DbCon { private String Path; private SqliteConnection...

View Article

Can't add script behaviour TMP_CoroutineTween. The script needs to be derived...

I have been doing some jimmyvegas unity tutorials on youtube. he has one for a space ship game for android and ios devices, its basically an endless runner, I have made 3 sections of the endless level...

View Article


2018.2 WebAssembly loading intervals only 0%, 90%, 100%

Ever since switching to Unity 2018 the loader is really chunky and not helpful. On old builds of my product the loader would smoothly climb to 100%. Now with my Unity 2018.2 builds, It skips from 0 to...

View Article

How to send a string from a website to the webGL game

Hello, I'm new to using webGL and am trying to figure out a way to securely send an authentication token from the website to the game which is hosted on the site. Basically, a user is logged into the...

View Article


How to stream audio from unity app to the web browser?

Hi all, I am new to unity. I would like to ask a simple question. how can I stream audio from unity app to the web browser? I have a simple unity app (in Linux) that has a single game object, the audio...

View Article

Unity WebGL Error Running on Local Server

Hi! I built an app that, in order to run, requires the user to authenticate. The idea is to run this app within a web page, with the help of a local server that contains a database to register the...

View Article


Unity WebGL Problem

Hi! I made an app that needs the user to authenticate and uses a local server with a database to save them. I want to run the app on Google Chrome, but since I can't run it directly by clicking on the...

View Article

[Solved] How do you add a GameObject With a .JS Component to a CS component...

## [Solved] How do you add a GameObject With...## a .JS Component to a CS component via code? I have a javascript code I would like to automatically add on startup to a GameObject. in this case my...

View Article

Can't get WebGL to Interact with browser scripting

Hi all. I keep getting errors when trying to interact with browser scripting. I've followed a bunch of examples, but let's use the standard example from the Unity manual:...

View Article
Browsing all 1875 articles
Browse latest View live


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