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
Properties
this[int]
Gets the element at the specified index in the read-only list.
public Material? this[int index] { get; set; }
Parameters
index
intThe 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
Model
The model resource to draw the owning entity with.
public Model? Model { get; set; }
Property Value
NumberOfMaterials
The number of materials the model has.
public int NumberOfMaterials { get; }
Property Value
Owner
The entity that owns this data.
public WeakReference<Entity> Owner { readonly get; set; }
Property Value
System
A reference to the system owning this data.
public SystemBase System { readonly get; set; }
Property Value
Methods
Clone(out ModelInfo, WeakReference<Entity>, SystemBase)
Clone the system data.
public void Clone(out ModelInfo clone, WeakReference<Entity> owner, SystemBase system)
Parameters
clone
ModelInfoThe cloned data.
owner
WeakReference<Entity>New owner of the data.
system
SystemBaseThe 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
ModelChanged
public event HookHandler<ModelChangedEventArgs> ModelChanged