wiki.sine.space | sinespace

Difference between revisions of "Scripting/SRenderer"

From wiki.sine.space
Jump to: navigation, search
(Created page with "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. ==Memb...")
(No difference)

Revision as of 18:49, 19 April 2017

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

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


Material

SMaterial Material { get; set; }

Get/Set the material instantiated to the renderer.

No example provided yet


SharedMaterial

SMaterial SharedMaterial { get; set; }

Get/Set the shared material used by the renderer.

No example provided yet


Materials[]

SMaterial Materials[] { get; set; }

Get/Set all materials instantiated to the renderer.

No example provided yet


SharedMaterials[]

SMaterial SharedMaterials[] { get; set; }

Get/Set all shared materials used by the renderer.

No example provided yet