Chunks
Moddable voxel sandbox for room-scale VR.
Protected Member Functions | Properties | List of all members
Chunks.Graphics.ModelRenderer Class Reference

Component that renders a Model using a Material. More...

Inheritance diagram for Chunks.Graphics.ModelRenderer:
Chunks.Graphics.CursorRenderer Chunks.Graphics.LineRenderer

Protected Member Functions

override void OnInitialize ()
 Called only once, when the component is first attached to an entity and is ready to add or retrieve other components. More...
 
override void OnDestroy ()
 Called when this component is removed, or the parent entity is destroyed. More...
 
override void OnEnable ()
 Called each time this component goes from being disabled to enabled. More...
 
override void OnDisable ()
 Called each time this component goes from being enabled to disabled. More...
 

Properties

Model Model [get, set]
 The current Model to render. More...
 
BaseMaterial Material [get, set]
 The current Material to use when rendering. More...
 

Detailed Description

Component that renders a Model using a Material.

Member Function Documentation

override void Chunks.Graphics.ModelRenderer.OnDestroy ( )
protected

Called when this component is removed, or the parent entity is destroyed.

override void Chunks.Graphics.ModelRenderer.OnDisable ( )
protected

Called each time this component goes from being enabled to disabled.

override void Chunks.Graphics.ModelRenderer.OnEnable ( )
protected

Called each time this component goes from being disabled to enabled.

override void Chunks.Graphics.ModelRenderer.OnInitialize ( )
protected

Called only once, when the component is first attached to an entity and is ready to add or retrieve other components.

Property Documentation

BaseMaterial Chunks.Graphics.ModelRenderer.Material
getset

The current Material to use when rendering.

Model Chunks.Graphics.ModelRenderer.Model
getset

The current Model to render.


The documentation for this class was generated from the following file: