Questions tagged [unity]

Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.

Filter by
Sorted by
Tagged with
0 votes
1 answer
50 views

How to make a moving GameObject push a CharacterController smoothly?

I have a GameObject called Player with a CharacterController component attached that has the following settings. Player also has a script called PlayerController ...
Magnality's user avatar
1 vote
1 answer
224 views

Reading JSON nested objects with JsonUtility

I currently have a JSON file: ...
misaochan's user avatar
  • 185
1 vote
0 answers
48 views

How to connect terrain chunks smoothly? [duplicate]

I'm generating a 3D terrain chunk based on Simplex Noise and Marching Cubes algorithm to create mesh. My chunks have global coordinates (x,y) e.g: (0, 1), (-1, 1)... Noise is generated using Compute ...
aress's user avatar
  • 21
3 votes
0 answers
97 views

How to find references to a Scriptable Object in all scenes

I'm going through the code of an open-source Unity project that uses Scriptable Objects as event channels. Currently, when I see a script raise an event (broadcast) through a SO channel, I have no way ...
misaochan's user avatar
  • 185
0 votes
2 answers
108 views

Player double jumps immediately with a single press when using new Input System

I am making a 2.5D runner game and I want to switch my input from the legacy Input Manager to Unity's new Input System package. I am facing a problem when I'm trying to implement the double jump when ...
Sami Rehman's user avatar
0 votes
0 answers
46 views

GameObject optimization in backpack behavior

I am trying to design the item part of my game. My original design was just to treat them as a gameobject and to give every item an item (or some derived) component,...
YX L's user avatar
  • 1
0 votes
1 answer
61 views

Wheel Colliders falling through ground

I have read through hours of forums and tried everything, But this issue still persists. I have attached a video showing the issue as well as all of my collider settings. Any help would be appreciated....
son goku's user avatar
0 votes
0 answers
48 views

OpenXR and valve index trigger value

EDIT updated code I've been looking for quite some time how to get valve index trigger value to be read. This is the current code ...
joonasj's user avatar
  • 101
2 votes
0 answers
89 views

How to get wave height of a gerstner wave made in shader graph?

I have followed a gerstner wave shader graph tutorial. (YouTube Tutorial) I am now trying to implement buoyancy by attaching the following script to a gameobject. (YouTube Tutorial) ...
Magnality's user avatar
1 vote
0 answers
40 views

Baked shadows look different when camera post-processing is on/off

Sooo... basically title. I have no idea what's going on here. I don't think I've seen this kind of behavior before, or perhaps I did but I can't remember it. Any idea on what's happening here? Couldn'...
YoshGJ's user avatar
  • 433
0 votes
0 answers
32 views

Uncaught Syntax Error: Unexpected token .. Doc type is not valid json error

I've a Unity WebGL game. When I try to load my game hosted on an Ubuntu 20.04 + apache 2.4 server, I get this error: Uncaught Syntax Error: Unexpected token .. Doc type is not valid json. I've ...
stighy's user avatar
  • 887
1 vote
1 answer
75 views

Character walks too fast when browser's hardware acceleration is turned off

I have posted a project on itch.io (here). My character walks with the speed I intended when Chrome's hardware acceleration is turned on but walks much faster when it is turned off. First, my friend ...
vmrfreitas's user avatar
0 votes
0 answers
68 views

How to send camera feed to Python script in Unity?

I have an image recognition code in Python and I need the input image to come from the Webcam in Unity. I've seen the Python Scripting package and the method of using a websocket and take the app as ...
Nicolas Cordoba's user avatar
0 votes
0 answers
39 views

Emulating a trail effect

I'm trying to emulate a VFX Graph trail effect I have found, however I'm having an issue with achieving a similar effect. The reference I'm using seems to use some randomness for lifetime and for ...
Sean2148's user avatar
  • 133
0 votes
0 answers
119 views

Unity Compute Shader InterlockedMin Max not work on Android

I have a Compute Shader which uses InterlockedMin() and InterlockedMax(). The Compute Shader works very well on my PC (AMD ...
Khang Dinh Hoang's user avatar
0 votes
0 answers
34 views

Verify Unity, Oculus app on server side [duplicate]

Starting with the fact that my background is non-technical, I have used a keystore with my Unity game build that is for Oculus, Rift, etc. Now I want to verify the authenticity of incoming client ...
SKB_BGPL's user avatar
0 votes
0 answers
33 views

Creating a custom input device for a DTrack wand, using both the new and old input system in Unity 2021

I am currently trying to figure out how to bridge the gap between the old input system and the new one. There is a DTrack wand that I am using, that has a package. Right now, I have a game that is ...
Riker Thomas's user avatar
0 votes
0 answers
56 views

StarterAssetsInputs OnLook is not triggering in Unity New Input System

I have StarterAssetsInputs script which based in new input system but it's onLook event is not triggering at all. Reamining functions like onSprint, onJump are working fine. But unable to find why ...
Muhammad Faizan Khan's user avatar
3 votes
1 answer
105 views

How would I generate mipmaps for a 3D texture in Unity (at runtime)?

I have been trying to create a voxel cone tracer for Unity (in Universal Render Pipeline 16). I have this (unoptimized) C# code that turns the [CubeScale] area around 0,0,0 of the scene into a 3D ...
MacksNotCool's user avatar
0 votes
1 answer
241 views

JSON Parse Error - Invalid Value

I'm trying to create a script that parses a JSON file to get information about the levels in my project. I know this technique should work because I have the same code in two other scripts, parsing ...
rpatton583's user avatar
-1 votes
1 answer
175 views

The Random.Range function isn't activating when I call it. How do I get the function to work properly and call from a range of numbers?

As you can see, I'm attempting to set the random prey integer to a number within a random range like so: randomPrey= Random.Range(0,10); As I type the code out the .Range doesn't turn yellow and the ...
Gideon Falls's user avatar
1 vote
1 answer
109 views

How do I make an interactive visual indicator in Unity?

I have a pad I interact with in my game. How do I make a visual indicator like the one shown in the attached GIF? You see that there is a circle that appears on the tablet showing where the user is ...
Craving_gold's user avatar
1 vote
1 answer
145 views

Why is HttpClient failing in Unity?

Before starting, I know I can use the UnityWebRequest class instead. The problem is that it is another library the one that is failing: NEthereum's source code, which makes heavy use of the HttpClient....
Luis Masuelli's user avatar
0 votes
0 answers
35 views

My sprite rects are flipped vertically in Unity Sprite Editor after being processed by code

I'm currently trying to process an Adobe Animate XML file with a Unity editor script, and I'm a lot of the way there, my parsing is complete, and I'm able to get some form of output, however the ...
SnowDev's user avatar
0 votes
1 answer
100 views

Car gets stuck to the ground when trying to go upwards

When I tried to go on top of the container, my car got stuck. Here is a picture of the situation: I am using 4200 for mass and defaults for drag and angular drag. ...
Mobin Bagheri's user avatar
0 votes
1 answer
49 views

How to alternate child placement to the left and right in a vertical stack?

Is it possible to arrange alternate children separately in a vertical layout group? I want to arrange the child elements so that one is aligned to the left, the next one is aligned to the right, and ...
fatdrogen's user avatar
  • 232
1 vote
0 answers
79 views

How to get OnTriggerStay2D working?

I am trying to make a flamethrower weapon for my player character. I am using a system were I can change between weapons, and every other weapon works perfectly. The flamethrower is able to turn on ...
the gibby's user avatar
0 votes
0 answers
20 views

Where did the Unity Market Insights button go in Unity Dashboard?

I'm currently trying to find the Market Insights button in the Unity Dashboard. I'm following this youtube video by Code Monkey called "Make your Game Better with Unity Analytics!" where he ...
Johnathan's user avatar
0 votes
0 answers
32 views

OnServerSceneChanged not executing

I've been trying to make a multiplayer game with mirror networking. The Network Manager works correctly when it comes to changing the scene, but the ...
koogel's user avatar
  • 79
1 vote
1 answer
162 views

VFX Graph projectile trail shows gaps

I'm learning to use Unity's VFX Graph to create projectiles. One projectile I'm working on is starting to get where I want it to be, but there's an issue where gaps are visible in the trail when I ...
Sean2148's user avatar
  • 133
0 votes
1 answer
59 views

My Update method is shown as unused, yet I'm coding within it

I'm doing a game lesson to get basic player movement working using Unity "Lesson 2.1: Player Positioning". I started with creating the public variables and getting the axis and the ...
Mila Data's user avatar
0 votes
1 answer
144 views

Camera Calibration custom Model-View-Projection matrix in Unity?

Coming from this topic I have a Model-View-Projection Matrix obtained from a Camera Calibration method, from where I want to render the scene: ...
Bontempos's user avatar
0 votes
1 answer
190 views

Can I add texture transparency and still use alpha clip in shader graph?

I have this simple shader that will "fade out" and object using alpha clip, for this to work the alpha has to be set to 0.5. I want to add a texture to this shader but I cannot figure out ...
Majs's user avatar
  • 395
0 votes
0 answers
75 views

Scene transitions to Game on host, but not on player client

I've been following Mirror tutorials on Youtube, where there was a transition between a lobby scene and a game scene, I wanted to add a loading scene inbetween them. The issue is the game transitions ...
koogel's user avatar
  • 79
0 votes
0 answers
23 views

Player sprite not showing up in game view

I'm new to game development in Unity, and I can't figure out why my player doesn't appear in-game but everything else does. This is what it looks like when running it. It's still there but it's gone:
Aidan悪い's user avatar
1 vote
0 answers
54 views

Is it Possible to use Python that is installed from the NuGet Unity Package Manager, for all platforms in a Unity game project?

Hi I've installed NuGetForUnity that is a Unity package to my Unity game project from the url: https://github.com/GlitchEnzo/NuGetForUnity/tree/master and there are so many NuGet packages are ...
1 JustOnly 1's user avatar
0 votes
1 answer
99 views

How to make enemy turn to face the player while attacking?

I need help making this code work. It is made for the enemy AI to move and patrol, chase the player and attack the player. The problem is when it starts to attack the player, then the player can move ...
Darius Van Vuuren's user avatar
1 vote
3 answers
122 views

Actual time-based plant growth even when game is off

I am developing a game in Unity, and I want a plant to grow based on actual time passed. Basically, if the player turns the game off and turns it back on one day after, the plant should be grown. I'm ...
Howler's user avatar
  • 169
0 votes
1 answer
166 views

Make night sky with moon

I want to make skybox with moon (texture 2d) with shader graph and be able to modify moon radius. Moon Texture 2d :
user avatar
1 vote
2 answers
311 views

Interacting with World Space UI

Been struggling with this one for a while. I've found a few other posts across Stack Exchange and the Unity forums that seem to have the same problem, but their solutions don't work for me (at least ...
rpatton583's user avatar
0 votes
1 answer
32 views

How to start particle from skybox

I'm trying to create a lightning particle system but I want to make the top of the particles at the skybox and the bottom on the ground. Is this possible?
user avatar
1 vote
1 answer
336 views

Intellisense broken after installing Unity VSCode extension

I didn't use VSCode since two weeks ago. Today, I opened my Unity Project. VSCode updated some extensions and unhappily, Intellisense doesn't work anymore. I didn't change VSCode settings — all ...
Achie1's user avatar
  • 169
2 votes
1 answer
86 views

Why does volumetric fog require two checkboxes?

In the Unity High Definition Rendering Pipeline, when adding Volumetric Fog, there's a checkbox to enable the Volumetric Fog, and then there's an additional checkbox to the right of it that also has ...
Sean Duggan's user avatar
0 votes
2 answers
51 views

How to keep an object that rotates around another at the same height when the radius changes?

In my game, I have one object that rotates around another using transform.RotateAround, and I need to change the radius of its orbit. The behavior now is that the ...
Daniel Lip's user avatar
  • 1,727
2 votes
0 answers
62 views

How should I go about making "tutorial hands" to show users how to interact with objects?

I'm making a game in which players will need to interact with several types of controls (switches, knobs, etc.) in various different ways. For part of the tutorial, I want to show them how to interact ...
Cipherix's user avatar
0 votes
0 answers
65 views

Is there any way to store values in vertex shader such that they can be used in the next frame?

As I understand, the values assigned in the vertex shader aren't persistent and storing them doesn't do anything. I want to store the MVP matrix in another variable to be used in the next frame. ...
Nikhil Nair's user avatar
0 votes
0 answers
59 views

Changing the default 1 Unit = 1 Meter to 1 Unit = 1 Yard in Unity

I am working on an augmented reality project in Unity using MRTK and have just found out that one Unity Unit is equal to a meter in real life. Unfortunately my project needs to be in yards. My current ...
Dylan Levine's user avatar
0 votes
0 answers
67 views

GameObject getting stuck on wall

I am making a simple character controller. Whenever I continuously walk into a wall, gravity just stops working. For example, if there is a wall in front of me, and I jump and walk into it while in ...
kalilamodow's user avatar
0 votes
1 answer
76 views

How can I store the current frame's MVP matrix (Or any other data about the current frame) so that I can use it in the next frame?

I've read several articles about motion blur and all were made with OpenGL. There is no equivalent of MVP matrix in C# scripts, so I wondered if the data could be stored on the GPU itself. Is it ...
Nikhil Nair's user avatar
0 votes
0 answers
46 views

How to fix the flag bool variable become null and never stop the coroutine?

The script is attached to some objects and in another script when checking distance, I'm starting the blinking and then should stop the blinking. but it's never got inside the stop method because the ...
Daniel Lip's user avatar
  • 1,727

1
3 4
5
6 7
324