ComponentBase Class
Namespace: Stride.CoreAssembly: Stride.Core.dll
Base class for a framework component.
Derived from ComponentBase: AudioEngine SoundBase SoundInstance Entity EntityManager Scene UILibrary UIPage GameBase GameSystemBase GameWindow GraphicsDeviceManager BatchBase<TDrawInfo> BatchBase<TDrawInfo>.DeviceResourceContext Effect FastTextRenderer GeometricMeshData<T> GeometricPrimitive<T> GraphicsAdapter GraphicsDevice GraphicsFactory GraphicsOutput GraphicsPresenter GraphicsResourceAllocator GraphicsResourceBase GraphicsResourceFactoryBase PrimitiveQuad ResourceGroupAllocator SpriteFont InputManager ShaderGeneratorContext RenderContext RenderDrawContext RendererCoreBase RenderFeature RenderSystem StreamableResource ElementRenderer
[DataContract]
public abstract class ComponentBase : DisposeBase, IDisposable, IComponent, IReferencable, ICollectorHolder
| Name | Description | |
|---|---|---|
| Constructors | ||
| ComponentBase() | Initializes a new instance of the ComponentBase class. |
|
| ComponentBase(String) | Initializes a new instance of the ComponentBase class. |
|
| Fields | ||
| Tags | Gets the attached properties to this component. |
|
| Properties | ||
| Name | Gets or sets the name of this component. |
|
| Methods | ||
| Destroy() | Disposes of object resources. |
|
| OnNameChanged() | Called when Name property was changed. |
|
| ToString() | ||
| Explicit Interface Implementations | ||
| ICollectorHolder.Collector | ||
Constructors
ComponentBase()
Initializes a new instance of the ComponentBase class.
protected ComponentBase()
ComponentBase(String)
Initializes a new instance of the ComponentBase class.
protected ComponentBase(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name attached to this component |
Fields
Tags
Gets the attached properties to this component.
public PropertyContainer Tags
Field Value
| Type | Description |
|---|---|
| PropertyContainer |
Properties
Name
Gets or sets the name of this component.
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The name. |
Methods
Destroy()
Disposes of object resources.
protected override void Destroy()
Overrides
OnNameChanged()
Called when Name property was changed.
protected virtual void OnNameChanged()
ToString()
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
Explicit Interface Implementations
ICollectorHolder.Collector
ObjectCollector ICollectorHolder.Collector { get; }
Returns
| Type | Description |
|---|---|
| ObjectCollector |