Skip to main content

Questions tagged [game-component]

0 votes
1 answer
710 views

I need to be able to disable only a specific component of an object publicly. I got a public component but I cant find any ways on the internet on how to disable and enable that component. Here's the ...
Object's user avatar
  • 289
1 vote
2 answers
677 views

Today I learned some cool tricks about sizing containers and its children, I mainly using this, because I need to build some forms. But now... It is some preffered way how to handle forms? Or some ...
Zechy's user avatar
  • 67
0 votes
2 answers
1k views

I am trying to place the ball on the paddle until a key is pressed, also there is box collider that triggers if the ball falls down. For some reason the transform.position.y of the ball gameObject is ...
Kevin Tony's user avatar
-1 votes
1 answer
562 views

It's exactly as the title says. I am getting a null reference error even though I have properly referenced the object. I have debugged my code to show that the result is always exactly what I need ...
Kiyo's user avatar
  • 27
0 votes
0 answers
311 views

so, I want to add a Cloth component. I click on a gameobjects, press “Add Component” in the Inspector search “Cloth” And nothing comes up. From my searches in google, nobody had such a problem ever, ...
John Smith's user avatar
  • 1,255
0 votes
1 answer
301 views

I'm having this terribly annoying problem where my text is being overwritten by Unity. This Happens regardless of whether I am using tags or not. Here is what I want to appear (more or less, I don't ...
hatinacat2000's user avatar
5 votes
1 answer
5k views

Preamble: I'm working on a level editor for my engine, which uses an ECS architecture. I have around a dozen component types so far, mostly dealing with graphics, like lighting components, model, and ...
Yattabyte's user avatar
  • 1,043
1 vote
1 answer
7k views

I have a Line Renderer component with 4 points, I would like to disable and enable the last 2 points at a certain time. My question is, how would I in code (C#) enable and disable individual Line ...
John Smith's user avatar
  • 1,255
1 vote
1 answer
12k views

So I have a GameObject which my scene will be it's children. I wanted to get the BoxCollider of all the objects and their sub-...
Henjin's user avatar
  • 415
-3 votes
1 answer
223 views

As we know, Unity has a cloth component, but is there something to simulate human hair?
Crapper's user avatar
3 votes
2 answers
2k views

Here is what I want to do in Unity for a given GameObject go = new GameObject(). I want to create a MeshRenderer, change its ...
AndraSol's user avatar
  • 177
3 votes
1 answer
1k views

I am trying to create a MessageBox in Unity, but I'm having some troubles in C#.. This is my code (I'll explain my problem later): MsgBox.cs ...
Kiritonito's user avatar
0 votes
1 answer
254 views

I'm reading that Components in ECS are just only data and have no logic. I'm trying to follow this and I got that working: ...
FrameBuffer's user avatar
1 vote
1 answer
2k views

first of, I'm new to android game development so I don't know all the classes and dictionaries within android and libgdx. I'm actually following a game development tutorial for the first time (...
DinoByte's user avatar
1 vote
1 answer
2k views

I'm not sure if this exact question has been asked before, but all I could find were questions about how to work with GameComponent, or why something wasn't working. I understand that you overload ...
Kyle Baran's user avatar

15 30 50 per page