C# Класс UnityEngine.GameObject

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetComponentByName Component
GetComponentsInternal UnityEngine.Component[]
Internal_AddComponentWithType Component
Internal_CreateGameObject void

Открытые методы

Метод Описание
AddComponent ( Type componentType ) : Component
AddComponent ( string className ) : Component
AddComponent ( ) : T
BroadcastMessage ( string methodName ) : void
BroadcastMessage ( string methodName, SendMessageOptions options ) : void
BroadcastMessage ( string methodName, System parameter ) : void
BroadcastMessage ( string methodName, System parameter, SendMessageOptions options ) : void
CompareTag ( string tag ) : bool
CreatePrimitive ( PrimitiveType type ) : GameObject
Find ( string name ) : GameObject
FindGameObjectWithTag ( string tag ) : GameObject
FindGameObjectsWithTag ( string tag ) : UnityEngine.GameObject[]
FindWithTag ( string tag ) : GameObject
GameObject ( )
GameObject ( string name )
GameObject ( string name, Type components )
GetComponent ( Type type ) : Component
GetComponent ( string type ) : Component
GetComponent ( ) : T
GetComponentInChildren ( Type type ) : Component
GetComponentInChildren ( ) : T
GetComponents ( Type type ) : UnityEngine.Component[]
GetComponents ( ) : T[]
GetComponentsInChildren ( Type type ) : UnityEngine.Component[]
GetComponentsInChildren ( Type type, bool includeInactive ) : UnityEngine.Component[]
GetComponentsInChildren ( ) : T[]
GetComponentsInChildren ( bool includeInactive ) : T[]
PlayAnimation ( AnimationClip animation ) : void
SampleAnimation ( AnimationClip animation, float time ) : void
SendMessage ( string methodName ) : void
SendMessage ( string methodName, SendMessageOptions options ) : void
SendMessage ( string methodName, System value ) : void
SendMessage ( string methodName, System value, SendMessageOptions options ) : void
SendMessageUpwards ( string methodName ) : void
SendMessageUpwards ( string methodName, SendMessageOptions options ) : void
SendMessageUpwards ( string methodName, System value ) : void
SendMessageUpwards ( string methodName, System value, SendMessageOptions options ) : void
SetActive ( bool value ) : void
SetActiveRecursively ( bool state ) : void
StopAnimation ( ) : void

Приватные методы

Метод Описание
GetComponentByName ( string type ) : Component
GetComponentsInternal ( Type type, bool isGenericTypeArray, bool recursive, bool includeInactive ) : UnityEngine.Component[]
Internal_AddComponentWithType ( Type componentType ) : Component
Internal_CreateGameObject ( GameObject mono, string name ) : void

Описание методов

AddComponent() публичный метод

public AddComponent ( Type componentType ) : Component
componentType System.Type
Результат Component

AddComponent() публичный метод

public AddComponent ( string className ) : Component
className string
Результат Component

AddComponent() публичный метод

public AddComponent ( ) : T
Результат T

BroadcastMessage() публичный метод

public BroadcastMessage ( string methodName ) : void
methodName string
Результат void

BroadcastMessage() публичный метод

public BroadcastMessage ( string methodName, SendMessageOptions options ) : void
methodName string
options SendMessageOptions
Результат void

BroadcastMessage() публичный метод

public BroadcastMessage ( string methodName, System parameter ) : void
methodName string
parameter System
Результат void

BroadcastMessage() публичный метод

public BroadcastMessage ( string methodName, System parameter, SendMessageOptions options ) : void
methodName string
parameter System
options SendMessageOptions
Результат void

CompareTag() публичный метод

public CompareTag ( string tag ) : bool
tag string
Результат bool

CreatePrimitive() публичный статический метод

public static CreatePrimitive ( PrimitiveType type ) : GameObject
type PrimitiveType
Результат GameObject

Find() публичный статический метод

public static Find ( string name ) : GameObject
name string
Результат GameObject

FindGameObjectWithTag() публичный статический метод

public static FindGameObjectWithTag ( string tag ) : GameObject
tag string
Результат GameObject

FindGameObjectsWithTag() публичный статический метод

public static FindGameObjectsWithTag ( string tag ) : UnityEngine.GameObject[]
tag string
Результат UnityEngine.GameObject[]

FindWithTag() публичный статический метод

public static FindWithTag ( string tag ) : GameObject
tag string
Результат GameObject

GameObject() публичный метод

public GameObject ( )

GameObject() публичный метод

public GameObject ( string name )
name string

GameObject() публичный метод

public GameObject ( string name, Type components )
name string
components System.Type

GetComponent() публичный метод

public GetComponent ( Type type ) : Component
type System.Type
Результат Component

GetComponent() публичный метод

public GetComponent ( string type ) : Component
type string
Результат Component

GetComponent() публичный метод

public GetComponent ( ) : T
Результат T

GetComponentInChildren() публичный метод

public GetComponentInChildren ( Type type ) : Component
type System.Type
Результат Component

GetComponentInChildren() публичный метод

public GetComponentInChildren ( ) : T
Результат T

GetComponents() публичный метод

public GetComponents ( Type type ) : UnityEngine.Component[]
type System.Type
Результат UnityEngine.Component[]

GetComponents() публичный метод

public GetComponents ( ) : T[]
Результат T[]

GetComponentsInChildren() публичный метод

public GetComponentsInChildren ( Type type ) : UnityEngine.Component[]
type System.Type
Результат UnityEngine.Component[]

GetComponentsInChildren() публичный метод

public GetComponentsInChildren ( Type type, bool includeInactive ) : UnityEngine.Component[]
type System.Type
includeInactive bool
Результат UnityEngine.Component[]

GetComponentsInChildren() публичный метод

public GetComponentsInChildren ( ) : T[]
Результат T[]

GetComponentsInChildren() публичный метод

public GetComponentsInChildren ( bool includeInactive ) : T[]
includeInactive bool
Результат T[]

PlayAnimation() публичный метод

public PlayAnimation ( AnimationClip animation ) : void
animation AnimationClip
Результат void

SampleAnimation() публичный метод

public SampleAnimation ( AnimationClip animation, float time ) : void
animation AnimationClip
time float
Результат void

SendMessage() публичный метод

public SendMessage ( string methodName ) : void
methodName string
Результат void

SendMessage() публичный метод

public SendMessage ( string methodName, SendMessageOptions options ) : void
methodName string
options SendMessageOptions
Результат void

SendMessage() публичный метод

public SendMessage ( string methodName, System value ) : void
methodName string
value System
Результат void

SendMessage() публичный метод

public SendMessage ( string methodName, System value, SendMessageOptions options ) : void
methodName string
value System
options SendMessageOptions
Результат void

SendMessageUpwards() публичный метод

public SendMessageUpwards ( string methodName ) : void
methodName string
Результат void

SendMessageUpwards() публичный метод

public SendMessageUpwards ( string methodName, SendMessageOptions options ) : void
methodName string
options SendMessageOptions
Результат void

SendMessageUpwards() публичный метод

public SendMessageUpwards ( string methodName, System value ) : void
methodName string
value System
Результат void

SendMessageUpwards() публичный метод

public SendMessageUpwards ( string methodName, System value, SendMessageOptions options ) : void
methodName string
value System
options SendMessageOptions
Результат void

SetActive() публичный метод

public SetActive ( bool value ) : void
value bool
Результат void

SetActiveRecursively() публичный метод

public SetActiveRecursively ( bool state ) : void
state bool
Результат void

StopAnimation() публичный метод

public StopAnimation ( ) : void
Результат void