Mesh3DComponent
Summary
Represents a 3D mesh component attached to an actor for rendering geometry.
Remarks
Danger
All calls made within this class MUST be performed on the Master Thread. See Threads.RunLater on how to safely call this from an asynchronous thread. Failure to comply with this can cause catastrophical failures as the engine is not designed for this.
Definition
Namespace: SDT4.Managed.Core.Components
Assembly: SDT4.Managed.Core.dll
struct Mesh3DComponent
Implements:
IActorComponent
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; set; Owner |
ActorHandle | |
public static get; ComponentId |
Guid | The unique identity of Mesh3DComponent. |
public get; set; Model |
ModelAsset? | Gets or sets the 3D model asset rendered by this component. |
public get; set; CastShadows |
Boolean | Gets or sets a value indicating whether this mesh casts shadows. |
public get; set; RenderMask |
Bitmask<UInt16> | Gets or sets the bitmask controlling the render passes or layers this mesh belongs to. |
public get; set; OverrideLod |
Nullable<Int32> | Gets or sets the forced level of detail (LOD) index for this mesh, or |
public get; Materials |
MeshMaterialCollection | Gets the collection providing access and assignment to this mesh's materials. |
Methods
public virtual Boolean Equals(Object? obj)
Summary: Determines whether the specified object is equal to the current component.
Parameters:
obj(Object?): The object to compare with the current component.
Returns:
- Boolean:
if the specified object is equivalent to this component; otherwise, .
public virtual Int32 GetHashCode()
Summary: Returns the hash code for this component.
Returns:
- Int32: A 32-bit signed integer hash code.
public virtual String ToString()
Summary: Returns a string representation of the component.
Returns:
- String: A string representing the component instance.