Questions tagged [unity-game-engine]

Unity is a cross-platform game engine by Unity Technologies. Questions should be about programming with the game engine and not usage of the graphical interface. Questions about the usage of the graphics interface are off topic.

unity-game-engine
Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

How can i ask the user to add my game to the firewall port exception list?

So i was wondering if its possible to ask the user programmatically to add my games port 4121 (for example) to the windows firewall exception list. And if so how? I know this is possible with ...
shadowdev's user avatar
0 votes
0 answers
7 views

How to Convert Python Code to C# for Efficiently Cornering Polygon Corners?

I have a Python script for detecting corners in a polygon, and I need to convert it to C# for use in Unity3D. The script utilizes algorithms such as convex hull or corner detection to identify corners ...
Sphelele Sphesihle Lubanyana's user avatar
0 votes
1 answer
10 views

Syncing random movements of an object among clients Unity Netcode

I have a multiplayer game where an enemy randomly moves across the level. As a result each client is seeing the enemy at different positions. I would like to know how to sync the movements of the ...
SquidyDev's user avatar
0 votes
0 answers
5 views

Is using vuforia web services possible through unity?

I've been trying to create a script to add a new target to my vuforia cloud database for about a week now and I have not been able to get it to work. I keep getting HTTP 400: Bad Request despite ...
dana's user avatar
  • 1
0 votes
1 answer
12 views

How to stop Character from sliding (slopes) on terrains

when moving on terrain sometimes my character slides depending on the angle of the surface. How to stop this. if the terrain is plain the movement is perfect no issue but when the surface is a rounded ...
Msaab96's user avatar
-1 votes
0 answers
20 views

How do I save and load the same animation I've been on when I saved?

animator.SetFloat("LastH", Input.GetAxisRaw("Horizontal")); animator.SetFloat("LastV", Input.GetAxisRaw("Vertical")); These are what I wanna save. animator....
The Fresh Carrot's user avatar
0 votes
0 answers
19 views

Send Keyboard key press event to Unity's new input system

I have a Unity application which detects some action and sends Keyboard press event to another Unity application. I use keybd_event to achieve this. Sample code: [DllImport("user32.dll")] ...
yogesh sriraman's user avatar
0 votes
1 answer
24 views

Need Help Reading CSV File & Cloning From LineRenderer Prefab

I'm pretty new at C# and Unity and I'm trying to visualize a 3D network in. I have 2 CSV files: one containing 3 columns of number, each representing an X, Y, and Z coordinate for a 3D scatterplot, ...
Isabel Xiao's user avatar
0 votes
0 answers
22 views

Trying to make an object clickable, turn "inactive" and another to turn active. Not sure what is wrong

Well. I am constructing a 3D point n click slice as a project in Unity with C#. It isn't meant to be complicated, and rather I have made it as simple as possible, to try and make it manageable for ...
Tnecniw's user avatar
0 votes
0 answers
21 views

Firebase unity Desktop build Beta Feature

I wanted to integrate firebase firestore to my Pc build when I noticed, that its not possible. After I found out about this beta feature, which works on PC builds. The problem is that it says: ...
Tom Schmitt's user avatar
0 votes
0 answers
10 views

How to link the output from a texture2D array to the vertex position in Unity URP Shader Graphs?

In unity 2022.3.7f1 URP shader graph, I am unable to link the output from a sample texture array2D to the input for vertex position, even though I am able to link it to a sample texture2D LOD. Shader ...
Hobgoblin's user avatar
0 votes
3 answers
62 views

Can't open a project in unity, because it keeps loading infinitely

After installing URP and Shader Graph from unity package, i closed my project, after a while I opened it again and my project stuck in "Compilling Scripts: ScriptCompilation: Running Backend"...
Skar_saN's user avatar
1 vote
1 answer
22 views

URP Build looks different than Editor?

I can't seem to figure out why my URP scenes in the Editor look different than the scenes in my Build. I am on Unity 2022.3.15f1 (tested on both MacOS and Windows 10) and have had the same result on ...
Will Lacey's user avatar
0 votes
0 answers
13 views

Can't run generic character animation Unity 3D

I've imported animation (separately from the model) from Mixamo and now I can't merge the model and the animation. The model can't be a humanoid because it doesn't have enough bones, and when I select ...
Ilya's user avatar
  • 352
0 votes
0 answers
13 views

How to use il2cpp_xxx functions to get class and method information of ilruntime hot fix dll?

For Unity games, we can use il2cpp_domain_get, il2cpp_thread_attach,il2cpp_domain_get_assemblies... functions to get c# class and method information. But now most of the unity games use ilruntime to ...
ken's user avatar
  • 63
0 votes
0 answers
13 views

Unity Android - Library\Bee\artifacts\Android\ManagedStripped failed with output - UnityLinker.exe

When I try to build the project, I receive the following error: Building Library\Bee\artifacts\Android\ManagedStripped failed with output: C:\Program Files\Unity\Hub\Editor\2023.2.18f1\Editor\Data\...
Jinn's user avatar
  • 91
0 votes
0 answers
31 views

Scene Transition Takes Long Time

I have a shop scene. There is a button that brings player back to menu scene. But transition from shop to menu a takes a bit long and I do not know why. I checked all codes and debugged them. Also ...
Mehmet YILDIZ's user avatar
-1 votes
1 answer
32 views

How can I sequentially play all audioclips from a list, and then add one at runtime?

I'm trying to create an interesting implementation of a clone of the classic game Snake. My idea would be to loop through a kick and a snare at first, and then add an element to that sequence at ...
Marc-Antoine Giguère's user avatar
0 votes
0 answers
15 views

Precalculate Rigidbody movement in 2D [duplicate]

Is there a way to precalculate movement from a Rigidbody in Unity and show this with a line renderer for example? I want to make a physics based marble game and show the path the marble is going to ...
CheckerT's user avatar
1 vote
0 answers
10 views

Seeking Solutions for Disabling the Guardian Boundary in MR Games on Quest 3

We're currently developing a mixed-reality (MR) game for the Oculus Quest 3, which involves physical movement within a real-world space. To enhance immersion, we utilize the passthrough feature ...
Руслан Василев's user avatar
0 votes
0 answers
9 views

Unity XRGrabInteractable weird position behavior

my code spawns 10 objects of class node, each if which move around during the lifetime of the scene. each node has a XRGrabInteractable object that allows them to be moved using a controller in VR. ...
Omar Alhussani's user avatar
2 votes
0 answers
24 views

Rotation of moving prefabs

I'm creating a game where as a player you need to dodge objects which are moving downwards. I have objects moving on the right and left side of the screen. By default my prefab is created to spawn on ...
Rayvo's user avatar
  • 21
0 votes
0 answers
27 views

Unity button text not displayed

I have a problem with my unity project, when I insert a UI Canva and a button with text, the text not showed up, I tried to increase the font size, the opacity, change the text color, every possible ...
Med Balali's user avatar
0 votes
0 answers
16 views

Problems with the the (new) input system and controllers

I am having a small problem with unity, the input system and controllers. As a small introduction, I have a player that is using the input system as well as a camera. Both are separate. Both have ...
B. Bakker's user avatar
0 votes
0 answers
10 views

Passing Custom Attributes to Spawned GameObjects in Unity Netcode

I created my first network application with unity netcode. I spawn bullets which appear on client site. But they have always the default configuration / default parameters are not overritten. I don’t ...
kuzdu's user avatar
  • 7,335
0 votes
0 answers
10 views

Unity ScriptableObjects being deleted on other machines when pushing to GitHub

A few days ago, I decided to create some structure to my unity project by moving ScriptableObjects (SO) into more detailed folders instead of keeping them all under ScriptableObjects. After pushing ...
user24348428's user avatar
0 votes
0 answers
8 views

Unity XR Toolkit make a spawned object interactable

i have a c# script that generates multiple objects and controls their positions based on some custom physics i want the generated objects to be intractable in the oculus headset using the controller, ...
Omar Alhussani's user avatar
0 votes
0 answers
9 views

Unity XR Interaction Manager spawns in empty?

So I have been working on a very simple VR game where the only thing you do is throw darts at a board (for now atleast), but I have some problems with the pickup of the darts, everytime I pick up a ...
Niki's user avatar
  • 1
0 votes
1 answer
36 views

How to find the closest distance on screen in unity 3d?

I'm working on a function to find the closest object (not transform.position) based on its location when I press the screen. Most of the objects I'm looking for, as shown in the figure, are pipe-...
Jun's user avatar
  • 5
-1 votes
2 answers
43 views

Unity merge two project [closed]

i have two different project in unity with some common scripts in both project. Now in second project did some changes in those common script in implementation according to project functionalities. ...
Nirmal Ghadiya's user avatar
-1 votes
1 answer
21 views

Something wrong with my buttons in Unity.Can anyone help me? [closed]

Purpose: I want to transform from scene 0 to scene 1. I did nothing wrong in the picture 1 and 2. But there's no other more options but "string name" and "No Function" (Picture 3). ...
玉少宸's user avatar
-2 votes
0 answers
14 views

Unity Game Performance Hit After Ad Loads

I have spent days trying to figure out what is going on and I'm at a loss. I've built a game using Unity 2023.2.12f1 with IronSource/LevelPlay SDK v8. I have the game deployed to an Android tablet, ...
Tsukasa's user avatar
  • 6,448
0 votes
0 answers
29 views

Ink working in unity editor but not in build

I recently decided to change my dialogue system for my game and started searching for new one on youtube, I found this really good tutorial series which uses Ink and Unity, Ink seemed interesting so I ...
Marko's user avatar
  • 103
0 votes
0 answers
11 views

Unity 3d Photon pun 2 material sync

I've found a problem with sync of material. In my code I want to change some variables of material throw script and sync it between players. Please note that every component have a "Photon view&...
Wadish Developer's user avatar
0 votes
0 answers
14 views

Mesh has no smoothing groups (Blend Shape Avatar)

I have not been able to figure out this problem for a week now, I searched the entire Internet and did not find any solution. After configuring Shape Keys in Blender (4.0) and exporting.fbx file in ...
Dmi's user avatar
  • 1
0 votes
0 answers
5 views

Resolving a circular dependency in an android studio application and an external unityLibrary

I am working on an android studio project which has a small unity game integrated into it, which is achieved by exporting it from unity and importing it as a module in android studio. I've gotten to ...
ThebulletKin's user avatar
0 votes
0 answers
26 views

How can I allow the player to move objects around in Unity3D?

So I want to allow the player to move containers (GameObject) in the world. I have googled this, but only found 2D solutions. This will be a mod for the game The Long Dark, so it must work without ...
The Illusion's user avatar
0 votes
0 answers
6 views

How to Detect an ArUco Marker from a 3D Model in Unity for HoloLens 2?

I've seen many repositories on how to detect physical ArUco or QR markers using the HoloLens 2 camera. However, in my current project, I receive an OBJ file and a corresponding texture file. When I ...
yixjia's user avatar
  • 3
1 vote
1 answer
27 views

I want to change the motor speed using a script, but error appears

I want to change the motor speed by pressing A and D buttons using a script, but this error appears: HingeJoint2D does not contain a definition for HingeJoint2D and no accessible extension method ...
кирилл жуков's user avatar
0 votes
0 answers
16 views

Photon Pun Reloads page on network disconnect on Unity WebGL

I am using Photon Pun 2 in Unity WebGL game. I have a Lobby Screen and a Game Screen. There is a RoomPhoton script to which PhotonView is attached(screenshot attached). The code for reconnection is ...
abhishek ranjan's user avatar
-1 votes
0 answers
15 views

How can I reduce the polycount of a high-poly model without losing alot of details?

Recently, I have create some models in Blender. There are just high-poly pine trees with snow on top but they have an extremely high poly-count(About a million vertices)! I want to use these trees for ...
Comrade Dev's user avatar
0 votes
1 answer
14 views

How do I get Phong Lighting to work on wave Vertex Shader HLSL Unity URP

I have a shader that is making a wave on a mesh and I added Phong lighting to it. But the valleys in the plane are not shaded. How do I get the the UniversalFragmentBlinnPhong to correctly use the ...
Lenny's user avatar
  • 17
1 vote
0 answers
18 views

How to do terrain deformation in unity

I'm making a game where I have a bomb dropping mechanic. I want to make sure that when a bomb explodes, I will have a crater left from the explosion on the terrain. The crater is not just a picture, ...
SOOBATON's user avatar
0 votes
0 answers
13 views

framework.js:1311 WebSocket connection to 'wss:// ipv4 server that I rent/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED [closed]

I'm creating my own simple multiplayer game on Unity and using the Mirror library for this. I rented a server from timeweb and calmly connect to it when I test my game, but when I decided to test the ...
Ваня Жемчугов's user avatar
0 votes
0 answers
19 views

How can I change my Unity Wave Function Collapse algorithm so that it properly propagates the neighbor tile options?

I'm trying to implement a wave function collapse algorithm in my unity game. Each cell has a list of possible tiles, and each tile has its own up/down/left/right rules. I'm trying to solve an issue ...
Azerty's user avatar
  • 1
3 votes
3 answers
50 views

How does Unity save data in PlayerPrefs?

I want to read data from the registry in my standalone WPF application, which is created inside a game on Unity using PlayerPrefs. The question is how to read and write float to the registry as ...
Azule's user avatar
  • 33
0 votes
0 answers
13 views

How to create an online game for WebGL using MIrror

I was creating my own simple multiplayer game on Unity. But I'm having problems connecting to the server in the browser. I already rent a server with which I tested the game. Please explain how I can ...
Ваня Жемчугов's user avatar
-1 votes
0 answers
11 views

In Unity VR the GameObject(Pipe) I Grabbed When I Move My Hand it is Stretching the GameObject(Pipe) I want it to Detached when Length is Fully Extend

I have Created the Fire Extinguisher & Its Hoze (Pipe) which are Grabble & but When i Grab the Pipe & Extend the Hand the Pipe Starts Vibrating Abnormally Can Anyone Help me.. I Want When ...
Waqas Ahmed Khan's user avatar
-5 votes
0 answers
53 views

Does DLL source language reflect in performance?

I'm looking into if I can make more performant code using Rust then export dll and import it in Unity, does source dll language make a difference in measured performance or memory usage? My personal ...
FColor04's user avatar
-3 votes
1 answer
40 views

Why can't I get C# script to work in unity?

I'm starting with unity and just wrote code for resume menu, but I have no idea how to make it so it works. This is the code: using System.Collections; using System.Collections.Generic; using ...
Wolfiksk's user avatar

1
2 3 4 5
1531