Mike (CNDG) (Talk | contribs) |
Mike (CNDG) (Talk | contribs) |
||
Line 15: | Line 15: | ||
==Shared Materials== | ==Shared Materials== | ||
− | {{ScriptFunction|SMaterial |SharedMaterial|{ get; set; }|Get/Set the shared material used by the renderer.}} | + | {{ScriptFunction|SMaterial |SharedMaterial|{ get; set; }|Get/Set the shared material used by the renderer.|5=Refer to member Material.}} |
− | {{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.|5=Refer to member Materials.}} |
{{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.
|