Renderer
public class Renderer : ComponentNamespace NodeWorld.Flux.
A Renderer of the world: it draws a mesh, a line, a trail, particles. The server has none.
Properties
enabled
public bool enabled { get; set; }The renderer draws.
bounds
public Bounds bounds { get; }The box around what it draws, in the world.
sharedMaterial
public Material sharedMaterial { get; set; }The material of the renderer (its first one): a material of the world, shared by every renderer that uses it.
sharedMaterials
public Material[] sharedMaterials { get; set; }Its materials, materials of the world shared by every renderer that uses them; setting it sets each index (SetSharedMaterial).
materialCount
public int materialCount { get; }The number of its materials.
Methods
SetSharedMaterial
public void SetSharedMaterial(int index, Material material)Changes material index of the renderer to a material of the world.
SetFloat
public void SetFloat(string name, float value, int materialIndex = 0)A float property for this renderer alone (a property block): the shared material does not change.
SetVector
public void SetVector(string name, Vector4 value, int materialIndex = 0)A vector property for this renderer alone: the shared material does not change.
SetColor
public void SetColor(string name, Color value, int materialIndex = 0)A color property for this renderer alone: the shared material does not change.
SetMatrix
public void SetMatrix(string name, Matrix4x4 value, int materialIndex = 0)A matrix property for this renderer alone: the shared material does not change.
SetTexture
public void SetTexture(string name, RenderTexture value, int materialIndex = 0)A render texture of the scripts as a texture property of this renderer alone: the shared material does not change.
