Mike (CNDG) (Talk | contribs) (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...") |
Mike (CNDG) (Talk | contribs) |
||
Line 3: | Line 3: | ||
The SRendererclass component interfaces with Unity's Renderer component, exposing its functions to scripting. | The SRendererclass component interfaces with Unity's Renderer component, exposing its functions to scripting. | ||
− | + | =Members= | |
+ | ==Miscellaneous== | ||
{{ScriptFunction|bool|IsVisible|{ get; }|Returns true if the renderer is visible on any camera.}} | {{ScriptFunction|bool|IsVisible|{ get; }|Returns true if the renderer is visible on any camera.}} | ||
− | {{ScriptFunction|bool|Enabled|{ get; set; }|Get/Set if the rendered object is visible.}} | + | {{ScriptFunction|bool|Enabled|{ get; set; }|Get/Set if the rendered object is visible.|-- Hide this object --<br>Space.Host.ExecutingObject.Renderer.Enabled = false;}} |
+ | |||
+ | ==Materials== | ||
{{ScriptFunction|SMaterial|Material|{ get; set; }|Get/Set the material instantiated to the renderer.}} | {{ScriptFunction|SMaterial|Material|{ get; set; }|Get/Set the material instantiated to the renderer.}} | ||
− | |||
{{ScriptFunction|SMaterial|Materials[]|{ get; set; }|Get/Set all materials instantiated to the renderer.}} | {{ScriptFunction|SMaterial|Materials[]|{ get; set; }|Get/Set all materials instantiated to the renderer.}} | ||
+ | |||
+ | ==Shared Materials== | ||
+ | {{ScriptFunction|SMaterial |SharedMaterial|{ get; set; }|Get/Set the shared material used by the renderer.}} | ||
{{ScriptFunction|SMaterial|SharedMaterials[]|{ get; set; }|Get/Set all shared materials used by the renderer.}} | {{ScriptFunction|SMaterial|SharedMaterials[]|{ get; set; }|Get/Set all shared materials used by the renderer.}} | ||
+ | |||
{{Scripting Navbox}} | {{Scripting Navbox}} |
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.
Returns true if the renderer is visible on any camera.
Get/Set if the rendered object is visible.
Get/Set the material instantiated to the renderer.
Get/Set all materials instantiated to the renderer.
Get/Set the shared material used by the renderer.
Get/Set all shared materials used by the renderer.
|