Skip to main content
Game Development

Questions tagged [c#]

C# is a multi-paradigm, managed, strongly typed, garbage-collected, programming language created by Microsoft in conjunction with the .NET platform.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Transform is not available in SystemBase Script (Unity Entities)

My player is baked entity in subscene while main camera is outside on scene. For some reason system cannot find transform of camera, GameObject was found though. <...
0 votes
0 answers
40 views

Aligning OpenStreetMap data with Cesium 3D tiles

I have my OpenStreetMap data exported using QGIS as a gltf file, and I'm trying to align it with Cesium 3d tiles for my high resolution model. The problem is that both have different coordinate ...
1 vote
1 answer
46 views

Change sprites for multiple image in one function

I am trying to make a digital clock (24:00 type), where each number is an individual image, that should change. So, I want to change sprites for multiple images in one piece of code. But when I ...
0 votes
0 answers
87 views

Why does this code behave strangely with different camera angles?

Relevant to this issue are two MonoBehaviour scripts: Actor and Player. ...
0 votes
0 answers
38 views

Is a shader easier or scripting easier in terms of creating a panel behind objects

My unity project is 2D universal. My goal here is to create a comic-like panel with outlines behind objects that have certain tags. This panel should follow the rotation and size change of said ...
0 votes
0 answers
45 views

Need a Hand with Liquid Shader in Unity (for VR Bartending Game)

I’m working on a liquid shader in Unity and could really use some help making it look more realistic. I’m going for that nice touch of transparency, reflections, maybe a hint of refraction—just ...
0 votes
0 answers
44 views

How do I use Addressables AssetReference RuntimeKey to compare the loaded assets with the AssetReference

I will use Addressables to load multiple assets of type Bag that share the same AssetLabelReference. So I will load them using ...
0 votes
1 answer
94 views

Modular Pathfinding Between Connections

I'm creating a puzzle for my game, where you have to arrange pipes to transmit an electrical flow from one point to the other. Each pipe center contains a connector hub and each end contains the ...
1 vote
2 answers
277 views

How do I implement the "collide and slide" algorithm in Unity?

I've recently been attempting (and failing) to create my own character controller for my 3D Unity game for around a week. I hate the Unity rigidbody physics system for making a character controller, ...
0 votes
1 answer
80 views

Why isn't my object following the target?

I don't understand why my object does not follow the player. I instantiate the character with the PlayerPrefs I saved from another scene. However, the object tracking code does not follow, and also ...
1 vote
1 answer
52 views

CapsuleCollider2D hitbox fails to trigger when player/enemy are stationary

I'm currently working on my first game in Unity, and I'm having some trouble with attacking. Currently, I have a game object with a 2D capsule collider child. When the attack button is pressed, the ...
1 vote
0 answers
98 views

How can I address multiple collisions within a single frame?

So, in my breakout clone, I've encountered issues where the ball will sometimes phase through bricks and the borders if it collides with one and then immediately collides with another after. My guess ...
0 votes
1 answer
96 views

How to instantly stop when moving the character with AddForce?

I made character movement using AddForce. But I don't understand how to get the desired effect. I need that when I release a movement key (for example WASD) the ...
1 vote
1 answer
133 views

How can I make liquid in my vr bartending game

I'm working on a realistic VR bartending game for Quest, and I need some help with making bottles pour liquid into cups. I'm aiming for a system where: When a bottle is tilted, liquid pours out ...
0 votes
0 answers
23 views

Bug Canvas image being stuttered when move follow player?

I tried to code an image to follow the character using canvas but it jerks when moving. Is this a bug? Do you have any solution to fix it? https://youtu.be/OnT9Pabgi2g ...

15 30 50 per page
1
2 3 4 5
...
566

AltStyle によって変換されたページ (->オリジナル) /