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
0 answers
8 views

How to multiply a vector4 with matrix4x4 in Unity?

If I would like to multiply a Vector4 with a Matrix4x4 in Unity, what method can I use? I have only found ...
Fox1942's user avatar
  • 111
0 votes
0 answers
10 views

How do I create Mining System like in DomeKeeper / Wall World?

TL;DR - I want to create a mining system like in Dome Keeper / Wall World. I'll start with the fact that I'm new to gamedev, and i did a wholeday of research before writing this post. I want to ...
Slava Bugz's user avatar
0 votes
0 answers
20 views

Frustum culling using compute shader, how?

I'm working on a little project for a while - creating an area where you can spawn a bunch of grass. I've overcame a major headache when figuring out the GPU instancing for the mesh and the code looks ...
Leedy's user avatar
  • 1
0 votes
0 answers
18 views

How can I change the default UI shown by Photon Fusion?

When I start a Photon Fusion game, I see by default the following dialog box: I want to change it, e.g. by removing some options, adding color or text, etc. I searched for "photon fusion lobby&...
Erel Segal-Halevi's user avatar
0 votes
0 answers
48 views

How do I start this game? New to coding (1st Game) [closed]

I am entirely new to this, but I want to participate in a game jam. I have time on my hand, and I want to learn. The theme of the jam in Growth and I have two weeks to do it. I am primarily a writer, ...
Zaida's user avatar
  • 1
1 vote
0 answers
38 views

When making an object that interacts with things, is it better to have one big script or several different small scripts [duplicate]

Im working on a game inspired by Buckshot Roulette but medieval themed, in Buckshot Roulette the weapon can be picked up by the player, who can then point it at themselves or the "dealer", ...
Ulver04's user avatar
  • 11
0 votes
0 answers
31 views

How to import files that are not included in the project by checking that they do not exist?

I want to check whether the files exist, as in the window that opens when importing asset from Package Manager, and copy them into the ...
Atlas's user avatar
  • 13
0 votes
1 answer
22 views

Displaying Precisely Scaled Images With URP Decal Projector

I am using Unity's URP Decal Projector to display an oval shaped blob shadow texture. The image's dimensions are 227 x 70. However, when I use it as a base map for my Shader Graphs/Decal material, it ...
PayasoPrince's user avatar
0 votes
1 answer
33 views

Can I convert a Unity file with the extension ".asset" to ".prefab"?

I am using a Unity asset to combine many meshes of many objects in my scene to one object. The name of this asset is "Mesh Combiner", and here is the link to the asset: https://assetstore....
Job_September_2020's user avatar
0 votes
0 answers
46 views

Terrain detail grass not receiving shadow

The grass painted onto my terrain is in the shadow area of the house wall, but they're not receiving shadows. Why does this happen?
anderlaini's user avatar
0 votes
0 answers
32 views

Isometric building system and coordinate calculation

I am a Unity newbie and trying to implement a simple building system in a prototype of the game. The scenario is: Clcik on the UI Button Move the coursor to the desired position Click left mouse ...
Valeriy's user avatar
  • 13
0 votes
0 answers
29 views

The lighting result is wrong when switching scene in Unity

When I use SceneManager.LoadScene() to switch between scenes the result of lighting in loaded scene is wrong. However if I open the scene solely the lighting ...
Simp Guy's user avatar
0 votes
0 answers
7 views

ProBuilder PivotLocation base center?

I'm trying to understand why ProBuilder only has FirstVertex or Center as pivot locations. Why not base center? How does one set the pivot to be base center of a mesh at runtime? https://docs.unity3d....
ina's user avatar
  • 284
0 votes
1 answer
38 views

How to rotate a game object automatically based on the angle?

I need someone to help me think about how this works so I can implement this behavior in my game. Below is a video from a game that does exactly what I am trying to accomplish. An airplane that only ...
Fabio S.'s user avatar
  • 455
0 votes
0 answers
11 views

No PolySpatial option under 'window', project settings xr says there's no VisionOS plugins in XR Plug-In Management either

I'm running Unity 2022.3.20f1 and can't find any polyspatial options anywhere. I've gone through start up guides and Unity's official videos but nothing aobut why the options wouldn't be here..
meds's user avatar
  • 1,480
0 votes
1 answer
36 views

Motion Retargeting from a BVH File to a Rigged Mesh in Unity with Arbitrary Rest Pose

I want to perform motion retargeting from a .bvh file (from lafan2 dataset) to a rigged mesh in Unity (which is John Lemon in this tutorial resource). I have overcome most of the problems, but this ...
Bobo Saint's user avatar
0 votes
1 answer
61 views

Camera movement automatically tracking a tool over a surface

I need to create camera movement tracking the clipper hair like this: I already have a script for the movement of the tool. I'm using Snapping Player to the Surface of an Object of this pos How ...
Lưu Anh's user avatar
0 votes
2 answers
89 views

How to use Unity ECS without URP or HDRP?

Finally, DOTS is completely released with Unity's 2022 version, so I decided to learn it using the latest tutorial by code monkey. He is using URP for this project. My question is, URP or HDRP ...
Muhammad Faizan Khan's user avatar
1 vote
1 answer
62 views

How to calculate rotation needed to cancel out perspective shift

I have a direction vector that's pointing to (0,0,1) in local object space. How can I calculate rotation needed to rotate it on Y axis so that from camera's point of view it would look as if it's ...
JuliusJ's user avatar
  • 13
0 votes
1 answer
27 views

Apple Watch Intermediary Script with Unity or Remake Game in Xcode?

there. I had a question that I keep finding dead ends to. Is it possible to create a Unity iOS project that has the ability to talk to a WatchOS app? I know that there's no current way to build it ...
Rakhi's user avatar
  • 1
0 votes
1 answer
29 views

How to get difference in rotation between 2 objects, but only on one axis

Say I have 2 cubes that start with the same rotation. I wish to track the rotation difference between the 2 about the z (forward) axis. Such that if cube A remains stationary and cube B rotates 30 ...
ThatOneGuy's user avatar
0 votes
1 answer
36 views

How to instantiate Capsule to always be facing another GameObject regardless of Capsule's world position?

I have the following line of code: ...
yunum's user avatar
  • 69
0 votes
0 answers
20 views

Why is my NavMeshAgent Waypoint system not looping

I have a character moving along 5 waypoints and it should be looping, but for some reason the Update method stops after the character reaches the last waypoint. The output for currWaypoint is 0, 1, 2, ...
Audrey Chung's user avatar
0 votes
1 answer
25 views

Unity Canvas on Quad blocking mouse click sometimes?

I'm working on a card game that has quads with world space canvases on them. I've been using OnMouseOver() and ...
Gage Adam's user avatar
0 votes
0 answers
18 views

Multiple materials on a single mesh and sharing them numerous times [closed]

This has probably been asked before, but I can't really find a post like this. Lets say I have about 5 meshes in total being instanced numerous times in a scene. I share about 5-6 materials among them ...
zaboombafoo's user avatar
1 vote
1 answer
36 views

How to add samples with dependencies to Asset Store?

I want to add a sample to an asset published on the Asset Store in Unity. Sample has a dependency on the ...
Atlas's user avatar
  • 13
0 votes
0 answers
45 views

Overlapping geometry (Z - Fighting) solution with shader in Unity

I have geometry that is overlapping with other geometry (the floor). So, I used a shader to bring my desired mesh to the top. However, a new problem arose: the shader was rendering not only on top of ...
Muhammad Faizan Khan's user avatar
0 votes
0 answers
14 views

Unsure why my transform are not syncing

I am using this Kinematic Character Control package I setup some Character Controls and all looks like it works fine in local. I am trying to setup some basic Networking. I installed Network for ...
Crocsx's user avatar
  • 25
1 vote
0 answers
22 views

How does the Asynchronous Upload Pipeline actually work?

Unity has an Asynchronous Upload Pipeline which can upload qualifying textures and meshes to the GPU asynchronously over several frames, rather than uploading in one frame and stalling the main thread....
Kevin's user avatar
  • 5,465
1 vote
1 answer
65 views

How to manage UI sound effects?

I'm making the main menu for a small game I'm making, and when I was learning how to make buttons etc. In order to make the buttons have a sound effect when pressed and so on, I was told to add an ...
Kaiannae's user avatar
  • 113
0 votes
2 answers
85 views

Is it wrong to leave references objects in the game world like 99999 units away

It's hard for me to explain my question with an example. But essentially, I have a game with many craftable items. Each item is a prefab. Each item has many unique scripts and functions on it. ...
Frank's user avatar
  • 121
2 votes
1 answer
65 views

What does Unity do with a Prefab's Start function when it is assigned to something in the editor?

Unity C#. This is a hard question to phrase, an example explains it the best: Setup Create a GameObject called Thing. Create a script ThingScript and attach it to Thing. ...
Frank's user avatar
  • 121
0 votes
0 answers
15 views

Client side not getting called on Network object. Netcode for gameobjects

I am trying to get a menu system going for my game. At the moment most of it works. I have been working with the relay system where it gives you a code you input and connect to a hosted server. The ...
WestMansionHero's user avatar
0 votes
1 answer
49 views

How to get value of transitionDuration in C# for Unity UI Toolkit

My existing code for this task is: ...
Mfa Xyz's user avatar
  • 11
0 votes
2 answers
108 views

How would I make my water shader ripple?

I can easily make a basic water shader, and create a script that detects when something touches the water, but does anyone know how I would actually trigger a ripple in shader graph? I'm not asking ...
Pow's user avatar
  • 163
0 votes
0 answers
24 views

Detected the Mesh's Specific material under the click in unity

I have a mesh in unity which is made of several materails. Now if i click on it on a specific location of the mesh, i want to pick its selected materail. Actually the mesh itself have several ...
Muhammad Faizan Khan's user avatar
1 vote
2 answers
52 views

How to stop acceleration on AddRelativeForce Unity 3D?

I'm a very new game developer, and I was making a simple first-person script using AddRelativeForce. However, when I go forward(or any direction), I slowly accelerate instead of going at a constant ...
Donkey45's user avatar
0 votes
0 answers
19 views

Trimming a complex object to shape

There is some complex model of many meshes and materials (map with 3d models). It can be moved on the plane in different directions. The map is loaded by square chunks. The task is to be able to crop ...
Aksenov Vladimir's user avatar
1 vote
1 answer
62 views

How do I get a client side health bar to update? Netcode for gameobjects

I am working on a multiplayer prototype and am trying to get health bars working. It's working on server side and health is working and subtracting from client side with a network variable, however I ...
WestMansionHero's user avatar
1 vote
0 answers
42 views

Intensity bloom effect in game doesn't match scene view in Unity

I'm using post-process with the bloom effect and a custom material with emission enabled. The intensity of the effect in the scene view doesn't match the intensity in the game, as shown in these ...
Arnold Daniels's user avatar
0 votes
0 answers
23 views

How to prevent ffmpeg process from automatically exiting after decoding first frame?

I'm encountering an issue with an ffmpeg process in my Unity application. My application receives an encoded video frame every 0.1 seconds (encoded with H.265). I have a script that creates and starts ...
Lucas B's user avatar
0 votes
0 answers
28 views

Weird corkscrew rotation on my fps controller

I recently started work on a new game and was making a first person controller. However, this problem came up. My problem I played around with it and followed multiple tutorials, but none worked. ...
Donkey45's user avatar
1 vote
0 answers
31 views

Stop Jitter On Rigidbody2D From Rotation

I'm currently working on a geometry dash like game, except it is a triangle instead of a square (rubrub calls it a cube). I want it so that it rotates back to 0, 0, 0, when it is touching the ground. ...
sammyiscuul's user avatar
0 votes
1 answer
65 views

How to serialize data from C# in a non-human-readable way?

How can I serialize a C# object (class, struct, etc) to a file without that file being easy to read? Binary Formatter First I used the Binary Formatter, which worked really well, but there were a lot ...
Pow's user avatar
  • 163
0 votes
1 answer
56 views

How can I store a list of instances of different classes?

I am making a customizable save system for Unity. In my previous save systems, since they aren't designed to be modifiable, I already know what each save is going to contain. However, when making this ...
Pow's user avatar
  • 163
0 votes
0 answers
15 views

Deleting parts of a mesh within a certain color threshold

How do you delete parts of a mesh within a certain color threshold based on texture and re-assemble the mesh afterwards? Below it seems I get back a bunch of messy triangles instead of just the ...
ina's user avatar
  • 284
1 vote
0 answers
48 views

How to implement soft-body blobs that don't pass through one another

I am learning about soft-body implementations in Unity recently, and I stumbled upon the game Blob Merge 3D. It is quite an interesting implementation because the blobs do not overlap one another and ...
creekat's user avatar
  • 11
0 votes
1 answer
33 views

Error converting singles and floats

I have a custom data type I made called a point. It has implicit operators to easily convert between a Vector3 and a float[], the reason being Vector3 and Vector2 types are not ...
Pow's user avatar
  • 163
1 vote
0 answers
53 views

Why might my rigidbody Capsule be flying all over the place when a HingeJoint is created upon collision?

I hit Space to make the Capsule jump into a Cube above it. Expected results: Upon Collision between Capsule and Cube, a HingeJoint is created with the Capsule's rigidbody connected to it. Capsule ...
mango's user avatar
  • 11
0 votes
0 answers
28 views

How do you recreate a standard lit shader using custom lighting?

When using a standard lit shader the environment reflection on the material gets soft/blurry when you have smoothness at anything lower than 1 (which would be perfect mirror reflection). But when you ...
Ben Mora's user avatar
  • 427

1
2 3 4 5
327