Method GetName
GetName()
Gets the name of the GameObject.
Declaration
public string GetName()Returns
| Type | Description | 
|---|---|
| string | Returns the name of the GameObject. | 
Remarks
This takes a dependency on the name.
GetName(Component)
Gets the name of the GameObject for a given component.
Declaration
public string GetName(Component component)Parameters
| Type | Name | Description | 
|---|---|---|
| Component | component | The Object to get the tag from. | 
Returns
| Type | Description | 
|---|---|
| string | Returns the name of the GameObject. | 
Remarks
This takes a dependency on the name.
GetName(GameObject)
Gets the name of the GameObject for a given GameObject.
Declaration
public string GetName(GameObject gameObject)Parameters
| Type | Name | Description | 
|---|---|---|
| GameObject | gameObject | The GameObject to get the name from. | 
Returns
| Type | Description | 
|---|---|
| string | Returns the name of the GameObject. | 
Remarks
This takes a dependency on the name.