Table of Contents

Class Component

Namespace
Crux.Core
Assembly
Crux.dll
public abstract class Component
Inheritance
Component
Derived
Inherited Members

Constructors

Component(GameObject)

public Component(GameObject gameObject)

Parameters

gameObject GameObject

Properties

GameObject

public GameObject GameObject { get; init; }

Property Value

GameObject

Transform

public TransformComponent Transform { get; }

Property Value

TransformComponent

Methods

Clone(GameObject)

public abstract Component Clone(GameObject gameObject)

Parameters

gameObject GameObject

Returns

Component

Delete()

public virtual void Delete()

GetComponent<T>()

public T GetComponent<T>() where T : Component

Returns

T

Type Parameters

T

HandleFrozenStateChanged(bool)

public virtual void HandleFrozenStateChanged(bool IsFrozen)

Parameters

IsFrozen bool

HasComponent<T>()

public bool HasComponent<T>() where T : Component

Returns

bool

Type Parameters

T

ToString()

Returns a string that represents the current object.

public override abstract string ToString()

Returns

string

A string that represents the current object.

Update()

public virtual void Update()