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
12 views

Camera movement automatic tracking

I need idea or some key words to create camera movement tracking the clipper hair like this: Im already has script for movement tool: Thanks y'all!!!
Lưu Anh's user avatar
0 votes
0 answers
8 views

Unity ECS Sub Scene not showing the object in game mode

Finally, DOTs is completely released with Unity 2022 version so I decided to learn it. Then, I found the latest tutorial by code monkey. He is using URP for this project so my question is, URP or HDRP ...
Muhammad Faizan Khan's user avatar
1 vote
0 answers
10 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
  • 11
0 votes
1 answer
13 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
19 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
23 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
13 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
0 answers
13 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
13 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
28 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
35 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
10 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
18 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,427
1 vote
1 answer
54 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
80 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
59 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
48 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
103 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
  • 152
0 votes
0 answers
23 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
48 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
57 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
40 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
22 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
27 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
29 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
63 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
  • 152
0 votes
1 answer
51 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
  • 152
0 votes
0 answers
12 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
40 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
  • 152
1 vote
0 answers
52 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
0 votes
0 answers
26 views

Help with 2D Pixel art sizing in unity

I just got into making a pixel art platformer for fun and I wanted it to work so that I could have a scrolling parallax background and also a tile set for the actual level to be played on. I ...
Aiden's user avatar
  • 1
0 votes
1 answer
42 views

Want get rotation based on the details of four corners of a square

I got four corner points of the object which are topLeft, topRight, BottomRight, BottomLeft and are as clockwise. I want a rotation values in X, Y and Z for unity object to rotate based on the ...
Yagnik Joshi's user avatar
0 votes
1 answer
43 views

Using an InputField to enter a distance and then move an object to a location based on the input: object returns to old position

I have attached a script (1) to the InputField for ease and it displays HA changing when I alter it during run time in the ...
Stan's user avatar
  • 3
0 votes
2 answers
87 views

Calculating velocity to reach the jump height while the player presses the jump button

The height of the jump depends on how long the player presses the jump button. There are only two parameters - height and time. Gravity is constant. Let's say that the height has three units, and the ...
Demexis's user avatar
1 vote
0 answers
17 views

Is it possible to always make a trail crossing another trail on top in unity?

I have a couple objects with trail renderers. I was wondering if it was possible to make it so that when an object passes over the trail of another object, it always appears on top ? Because right now ...
Usylom's user avatar
  • 21
0 votes
1 answer
78 views

Best way to create a 2 player networked game

I've been dabbling in Unity. I learned the basics and I've created a few small games and one larger one. All of them were single player games. Now I want to create a game that's a 2 player - pretty ...
Kaiannae's user avatar
  • 113
0 votes
1 answer
23 views

how to import uv maps into unity?

Im trying to create a model using blender and import it to unity. I can import the model and get the texture working but the texture uv map is not correct. I have a uv layout map file I exported but ...
George's user avatar
  • 101
1 vote
1 answer
57 views

A-star algorithm after 2D tilemap 90-degree rotation

I am learing Unity and for now trying to implement a simply pathfinding alogorithm in a simply 2D isometric diamond-shaped tilemap. Recently I learned a way how to rotate tilemap and I already have a ...
Valeriy's user avatar
  • 13
0 votes
2 answers
62 views

Unity UI Buttons not working (not clickable)

Buttons Easy, Medium and Hard can not be clicked even though Restart Button was clickable from the start. All of the buttons have interactable checkbox on and raycast target on. Shadow panels and ...
Pablo Frank's user avatar
0 votes
1 answer
52 views

2D isometric tilemap coordinates

I am learning Unity and for now trying to rotate a tilemap using (x, y) --> (-y, x). I have created a Grid and tilemap in it As you can see my tiles are in cells of izometric tilemap. I am ...
Valeriy's user avatar
  • 13
0 votes
1 answer
52 views

Particle system won't collide with box collider all the time. Rain seeps through ceiling

I'm trying to make it rain in my game, but am having a problem with it seeping through the ceiling. I put a box collider above the house to catch the rain as it falls and it worked for a while, but ...
WestMansionHero's user avatar
1 vote
1 answer
97 views

How to ACTUALLY full screen the game view?

In Unity, you can use the maximise on play option, to full screen the game when you play it. You can also double click the tab to maximise or minimize the view. This works fine, but as you can see in ...
Pow's user avatar
  • 152
1 vote
2 answers
92 views

Building system similar to Satisfactory

I'm currently collecting ideas how to make a building and placement system in Unity. The user can place the game objects on several layers or floors, but the objects need to be on top of the objects ...
RBull's user avatar
  • 13
3 votes
1 answer
540 views

What expressions/functions are supported in numeric fields?

In the Unity Editor, we can type an expression in a numeric field and press Enter to apply the result of the expression. For example, for a float field, we can type ...
Kevin's user avatar
  • 5,427
0 votes
0 answers
31 views

Depth Map doesn't work in 2D URP

This is a further question from my last, originally I was trying to change the way the depth map is rendered per-pixel. However, through more testing, I've found that actually it has nothing to do ...
Pow's user avatar
  • 152
0 votes
0 answers
37 views

FBX file structure changed after export from blender

I have a free character from asset store. I uploaded it to mixamo and used it to create and download animation(pistol idle) I decided to change it a bit in blender(only animation, I didn't change ...
Taras Fityo's user avatar

1
2 3 4 5
327