implementing android activity?
![alt text][1] [1]: /storage/temp/182103-capture.png hello, how can i implement these android codes in unity c#? [Unity 2021.1.x] thanks a lot.
View ArticleWhy 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 ArticleWhy am I only allowed to trigger my dash script once?
I have a player movement controller script and a dash script. The movement controller turns on the dash script whenever space is pressed but for some reason it only works once. It won't let me do it a...
View ArticleHow do I unpause my game using Time.timeScale?
I'm trying to write a pause script and I can't figure out how to unpause properly. Can anybody help? Here's what I have but it's not working: #pragma strict var gamePaused : boolean = false; function...
View ArticleHow would I go about keeping my player object moving after a scene change?
I have a scene change in my prototype but every time the second scene is loaded, the player stops moving and you have to repress whichever direction you were holding, How would I keep the player moving...
View ArticleIs jslib in Assetstore package allowed?
Hi! I'm preparing to submit an asset store package, which requires an .jslib plugin to work when building for webgl. When using the Asset Store Tools' Validator I get the warning "Remove JavaScript". I...
View ArticleJavascript communication 2 ways. Simple examples / tutorials?
I am not a skilled programmer. I know how to code in Unity (the basics). I have searched youtube and came a cross a lot of tutorials which are outdated. They don't work anymore on the Unity 2020+...
View Articleproblem with bullet instantiation
I have a mechanic in my game that allows the player to slow down time but whenever I use it, my bullet spawner starts spitting out bullets at a higher rate. What do I do? Here's my bullet spawner...
View ArticleWhy isn't my pixel reading script working?
I've got this script that should be reading the color of a pixel on the screen but it never returns the right result. For example; it will return black even though there's a giant white object on...
View ArticleUnity WebGL build - HTML.asm.framework.js errors. I need help solving.
The error I am receiving is the following (I am not a programmer.) MOJ_HTML.asm.js:7 Invalid asm.js: expected doubles or floats MOJ_HTML.asm.framework.js:2 Loading player data from data.unity3d...
View ArticleEnoent error: diskusage.node not found when starting Unity Hub
Hello! i have recently downloaded Unity Hub to make some games. However, on opening the Unity Hub, i seem to be getting this error![alt text][1] (see photo attached). i have seen another unity answer...
View Articleunity launch .app created in applescript - Win32Exception: Cannot find the...
All I want to do is launch an apple script that I've saved as a .app file so will play on launch. I've launched other applications with this line of code: System.Diagnostics.Process.Start("/file...
View ArticleUsing unity as a library for creating windows, mac and web application
Hi, I want to create an application in unity3d in which all my UI part will be created using web technologies (html, css, javascript, react.js etc). Means the whole UI will be handled in web...
View ArticleUnity WebGL game on itch.io loads different scene than in editor
Hi everyone. In a short game I have scenes named "Level1", "Level2", and "DeadScreen". I wrote through code that, when the player's lives are 0 or smaller, the scene "DeadScreen" will load. However, if...
View ArticlePhoton disconnects in WebGL
Hi, Photon disconnects in WebGL when a tab is not visible or when you minimize the browser window. According to this link:...
View ArticleUnityScript 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 Articlecamera 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 ArticleHELP! 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 ArticleEditing 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