Table of Contents

Struct ModelInfo

Namespace
ReFuel.Scenegraph
Assembly
ReFuel.dll
[SystemData(typeof(ModelRendererSystem))]
public struct ModelInfo : ISystemDataList<Material?>, IReadOnlyList<Material?>, IReadOnlyCollection<Material?>, IEnumerable<Material?>, ISystemDataRefList<Guid>, ISystemDataList<Guid>, ISystemData, IRefReadonlyList<Guid>, IReadOnlyList<Guid>, IReadOnlyCollection<Guid>, IRefEnumerable<Guid>, IEnumerable<Guid>, IEnumerable, ISystemDataCloneable<ModelInfo>
Implements
Inherited Members

Constructors

ModelInfo()

public ModelInfo()

Fields

BaseColor

The viewport tint or the missing material color the model will have.

public Color4<Rgba> BaseColor

Field Value

Color4<Rgba>

Properties

this[int]

Gets the element at the specified index in the read-only list.

public Material? this[int index] { get; set; }

Parameters

index int

The zero-based index of the element to get.

Property Value

Material

The element at the specified index in the read-only list.

Materials

List of materials associated with each draw group of the Model.

public IList<Material?> Materials { get; }

Property Value

IList<Material>

Model

The model resource to draw the owning entity with.

public Model? Model { get; set; }

Property Value

Model

NumberOfMaterials

The number of materials the model has.

public int NumberOfMaterials { get; }

Property Value

int

Owner

The entity that owns this data.

public WeakReference<Entity> Owner { readonly get; set; }

Property Value

WeakReference<Entity>

System

A reference to the system owning this data.

public SystemBase System { readonly get; set; }

Property Value

SystemBase

Methods

Clone(out ModelInfo, WeakReference<Entity>, SystemBase)

Clone the system data.

public void Clone(out ModelInfo clone, WeakReference<Entity> owner, SystemBase system)

Parameters

clone ModelInfo

The cloned data.

owner WeakReference<Entity>

New owner of the data.

system SystemBase

The system that is cloning the data.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<Material?> GetEnumerator()

Returns

IEnumerator<Material>

An enumerator that can be used to iterate through the collection.

Events

MaterialChanged

public event HookHandler<MaterialChangedEventArgs> MaterialChanged

Event Type

HookHandler<MaterialChangedEventArgs>

ModelChanged

public event HookHandler<ModelChangedEventArgs> ModelChanged

Event Type

HookHandler<ModelChangedEventArgs>