Falco Engine 3.9.0.1 (beta)
FalcoEngine.GameObject Class Reference

Public Member Functions

 GameObject ()
 Create new empty game object More...
 
GetComponent< T > ()
 Return component by type More...
 
AddComponent< T > ()
 Create new component of type T and attach it to this game object More...
 
GameObject Clone ()
 Create a copy of this game object More...
 

Static Public Member Functions

static GameObject Find (string name)
 Find game object by name. If scene has multiple game objects with the same name, the first will be returned More...
 
static GameObject GetByUniqueName (string name)
 Return game object by it's unique name (UID) More...
 

Properties

string name [get]
 Return game object name More...
 
string uniqueName [get]
 Return game object unique name (UID) More...
 
bool enabled [getset]
 Get or set game object enabled state More...
 
bool active [get]
 Return true if game object enabled self and all of it's parents are enabled too More...
 
string tag [getset]
 Get or set game object tag More...
 
int layer [getset]
 Get or set game object layer More...
 
Transform transform [get]
 Transform component More...
 
Rigidbody rigidbody [get]
 RigidBody component More...
 
Animation animation [get]
 Animation component More...
 
AudioSource audioSource [get]
 AudioSource component More...
 
NavMeshAgent navMeshAgent [get]
 NavMeshAgent component More...
 
Component[] components [get]
 Return an array of all game object's components More...
 

Detailed Description

Definition at line 8 of file GameObject.cs.

Constructor & Destructor Documentation

◆ GameObject()

FalcoEngine.GameObject.GameObject ( )

Create new empty game object

Member Function Documentation

◆ AddComponent< T >()

T FalcoEngine.GameObject.AddComponent< T > ( )

Create new component of type T and attach it to this game object

Template Parameters
T
Returns

Definition at line 95 of file GameObject.cs.

◆ Clone()

GameObject FalcoEngine.GameObject.Clone ( )

Create a copy of this game object

Returns

◆ Find()

static GameObject FalcoEngine.GameObject.Find ( string  name)
static

Find game object by name. If scene has multiple game objects with the same name, the first will be returned

Parameters
name
Returns

Definition at line 112 of file GameObject.cs.

◆ GetByUniqueName()

static GameObject FalcoEngine.GameObject.GetByUniqueName ( string  name)
static

Return game object by it's unique name (UID)

Parameters
name
Returns

Definition at line 122 of file GameObject.cs.

◆ GetComponent< T >()

T FalcoEngine.GameObject.GetComponent< T > ( )

Return component by type

Template Parameters
T
Returns

Definition at line 85 of file GameObject.cs.

Property Documentation

◆ active

bool FalcoEngine.GameObject.active
get

Return true if game object enabled self and all of it's parents are enabled too

Definition at line 38 of file GameObject.cs.

◆ animation

Animation FalcoEngine.GameObject.animation
get

Animation component

Definition at line 63 of file GameObject.cs.

◆ audioSource

AudioSource FalcoEngine.GameObject.audioSource
get

AudioSource component

Definition at line 68 of file GameObject.cs.

◆ components

Component [] FalcoEngine.GameObject.components
get

Return an array of all game object's components

Definition at line 78 of file GameObject.cs.

◆ enabled

bool FalcoEngine.GameObject.enabled
getset

Get or set game object enabled state

Definition at line 33 of file GameObject.cs.

◆ layer

int FalcoEngine.GameObject.layer
getset

Get or set game object layer

Definition at line 48 of file GameObject.cs.

◆ name

string FalcoEngine.GameObject.name
get

Return game object name

Definition at line 23 of file GameObject.cs.

◆ navMeshAgent

NavMeshAgent FalcoEngine.GameObject.navMeshAgent
get

NavMeshAgent component

Definition at line 73 of file GameObject.cs.

◆ rigidbody

Rigidbody FalcoEngine.GameObject.rigidbody
get

RigidBody component

Definition at line 58 of file GameObject.cs.

◆ tag

string FalcoEngine.GameObject.tag
getset

Get or set game object tag

Definition at line 43 of file GameObject.cs.

◆ transform

Transform FalcoEngine.GameObject.transform
get

Transform component

Definition at line 53 of file GameObject.cs.

◆ uniqueName

string FalcoEngine.GameObject.uniqueName
get

Return game object unique name (UID)

Definition at line 28 of file GameObject.cs.


The documentation for this class was generated from the following file: