wiki.sine.space | sinespace

Scripting/SRenderer

From wiki.sine.space
Revision as of 19:15, 19 April 2017 by Mike (CNDG) (Talk | contribs)

Jump to: navigation, search

A renderer is what makes an object appear on the screen.

The SRendererclass component interfaces with Unity's Renderer component, exposing its functions to scripting.

Members

Miscellaneous

IsVisible

bool IsVisible { get; }

Returns true if the renderer is visible on any camera.

No example provided yet


Enabled

bool Enabled { get; set; }

Get/Set if the rendered object is visible.

No example provided yet


Materials

Material

SMaterial Material { get; set; }

Get/Set the material instantiated to the renderer.

No example provided yet


Materials[]

SMaterial Materials[] { get; set; }

Get/Set all materials instantiated to the renderer.

No example provided yet


Shared Materials

SharedMaterial

SMaterial SharedMaterial { get; set; }

Get/Set the shared material used by the renderer.

No example provided yet


SharedMaterials[]

SMaterial SharedMaterials[] { get; set; }

Get/Set all shared materials used by the renderer.

No example provided yet