Skip to main content

Questions tagged [c#]

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

12 votes
1 answer
1k views

I have a spell system where a the spell is a self-contained game object handling all the logic. When done, it destroys itself. This works great Then I added a second game object handling animation, ...
Zibelas's user avatar
  • 5,012
3 votes
1 answer
148 views

I'm trying to implement a robust pause system in Unity and I'm confused about the correct approach. My first (very simple) implementation in my previous project used a ...
Curio's user avatar
  • 261
0 votes
3 answers
148 views

Object pools are great. They are fun to make, save you a lot of memory and fps. But as my projects grow in size and complexity it gets harder and harder to work with them. If you only have a couple of ...
MrV's user avatar
  • 49
0 votes
2 answers
80 views

I'm making a 2D game using Unity and I want to implement cutscenes that change over at certain lines. ...
August's user avatar
  • 1
0 votes
0 answers
44 views

(Maybe good to know, this game is part of a game dev course where we had to make a Vampire Survivors like game) I thought SceneManager.LoadScene() reloaded EVERYTHING in a scene, like a clean state, ...
MrV's user avatar
  • 49
0 votes
1 answer
39 views

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. <...
UNREAL's user avatar
  • 1
0 votes
0 answers
62 views

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 ...
cluck ham's user avatar
1 vote
1 answer
72 views

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 ...
Ratty's user avatar
  • 13
0 votes
0 answers
121 views

Relevant to this issue are two MonoBehaviour scripts: Actor and Player. ...
Bunabyte's user avatar
  • 331
0 votes
0 answers
51 views

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 ...
pockspocky's user avatar
0 votes
0 answers
61 views

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 ...
Dylan Ball's user avatar
0 votes
0 answers
63 views

I will use Addressables to load multiple assets of type Bag that share the same AssetLabelReference. So I will load them using ...
Ahmed Dyaa's user avatar
0 votes
1 answer
144 views

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 ...
Redsam121's user avatar
1 vote
2 answers
488 views

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, ...
Callumari's user avatar
0 votes
1 answer
103 views

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 ...
Amadeus Von Alerta's user avatar

15 30 50 per page
1
2 3 4 5
566