Top "Gameobject" questions

GameObject is a key component of the Unity3D engine.

How to have a Game Object remove itself from a list? (Unity3d)

OK so basically I have a list that keeps track of all the enemies in the scene. I am using …

c# list unity3d gameobject
Can't change public variables on a script attached to a gameobject. Values are restored upon play

Here is my first question. Haven't been able to find anything on the topic. I want to create an editor …

c# unity3d gameobject
Unity add child to children, but at top

I am trying to add a child object to a collection of children, but I want to make sure the …

c# unity3d parent-child gameobject
Moving an object with vector3.MoveTowards

I am working on a game app with Unity. I have an issue when it comes to move a GameObject . …

c# android unity3d device gameobject
Getting child object of gameObject in unity

I have Object "Unit" with sub Objects "Monster and Health. I also have Object Tower that has sphere collider. Also …

unity3d gameobject subobject
Create a copy of an gameobject

How do you create a copy of an object upon mouse click in Unity3D? Also, how could I select …

unity3d runtime instantiation mouseclick-event gameobject
How to make a gameObject invisible?

I am attempting to make a Unity gameObject invisible through code. So far I have tried (On a script attached …

unity3d gameobject
Add Image component to new gameobject

I created a new game object: GameObject newObject = new GameObject("ObjectName"); newObject.AddComponent<RectTransform>(); newObject.GetComponent<RectTransform&…

c# image unity3d scripting gameobject
Unity C# - Spawning GameObjects randomly around a point

I am not sure how to approach this problem or whether there are any built in Unity functions that can …

c# unity3d instantiation gameobject
What is the most effective way to get closest target

What is the most effective and less expensive way to get closest target from these two methods? Using LINQ GameObject …

c# unity3d unityscript gameobject