Quantcast
Channel: Questions in topic: "component creation"
Browsing all 12 articles
Browse latest View live

How Can I Get the Parent GameObject from Within a Component (C#)

I have a GameObject that will share a common feature with a bunch of other GameObjects. When an NPC runs into it, I want to perform an action. I've started scripting a class called Trap. My intention...

View Article



How do I add different components to a character in Unity?

Hi Guys, I hope someone can give advice on how to do this. I'm trying to add different components to a character (shoes, gloves, etc.). Kind of like Subway Surfers whenever the character puts on the...

View Article

Clickable GameObjects within one another...

So I have a base GameObject which has a simple script which instantiates two other Objects. I figured out how to attach the scripts to the instantiated objects but it seems the instantiated objects...

View Article

Is there way to see component as code?

Is there opportunity to see component not as block in user interface, but as code? For example if I want to override some components buttons, e.g. I want to modify some buttons of Terrain object, or...

View Article

Adding an unkown Component type to an Instantiated GameObject

First Time using this, so I'm sorry if the question is too vague or formatted incorrectly. Question: I need to Add a component to a Game Object that I will instantiate. This Component's name AND type...

View Article


Initialize constant fields in Component at runtime

I'm trying to add a Component to a GameObject at runtime which has constant fields (or more specifically, a property that has a public get and a private set). Normally I would set these values in the...

View Article

How Can I Get the Parent GameObject from Within a Component (C#)

I have a GameObject that will share a common feature with a bunch of other GameObjects. When an NPC runs into it, I want to perform an action. I've started scripting a class called Trap. My intention...

View Article

How do I add different components to a character in Unity?

Hi Guys, I hope someone can give advice on how to do this. I'm trying to add different components to a character (shoes, gloves, etc.). Kind of like Subway Surfers whenever the character puts on the...

View Article


Clickable GameObjects within one another...

So I have a base GameObject which has a simple script which instantiates two other Objects. I figured out how to attach the scripts to the instantiated objects but it seems the instantiated objects...

View Article


Is there way to see component as code?

Is there opportunity to see component not as block in user interface, but as code? For example if I want to override some components buttons, e.g. I want to modify some buttons of Terrain object, or...

View Article

Adding an unkown Component type to an Instantiated GameObject

First Time using this, so I'm sorry if the question is too vague or formatted incorrectly. Question: I need to Add a component to a Game Object that I will instantiate. This Component's name AND type...

View Article

Initialize constant fields in Component at runtime

I'm trying to add a Component to a GameObject at runtime which has constant fields (or more specifically, a property that has a public get and a private set). Normally I would set these values in the...

View Article
Browsing all 12 articles
Browse latest View live




Latest Images