KROYSDOCS
HomeWhat's newv0.1.0

MeshRenderer

Script access to an entity's Mesh Renderer: visibility, mesh, material, skinning, level of detail and draw distance.

Kindclass
NamespaceKroys.EngineScripting
Members25
SourceGenerated/NativeComponents.g.cs, NativeComponents.cs
DECLARATION

Declaration

Component access: every member takes the entity first, for example MeshRenderer.Has(Entity). The values are the ones the Inspector shows for this component.

Declaration
public static partial class MeshRenderer
REFERENCE

Members

Methods
#public static bool Has(Entity e)
Whether the entity has a Mesh Renderer component.
methodstatic
#public static bool IsVisible(Entity e)
Reads the Mesh Renderer component's Visible value of the entity.
methodstatic
#public static void SetVisible(Entity e, bool value)
Sets the Mesh Renderer component's Visible value on the entity.
methodstatic
#public static bool IsOccluder(Entity e)
Reads the Mesh Renderer component's Occluder value of the entity.
methodstatic
#public static void SetOccluder(Entity e, bool value)
Sets the Mesh Renderer component's Occluder value on the entity.
methodstatic
#public static bool AllowsOcclusion(Entity e)
Reads the Mesh Renderer component's Occlusion value of the entity.
methodstatic
#public static void SetAllowOcclusion(Entity e, bool value)
Sets the Mesh Renderer component's Allow Occlusion value on the entity.
methodstatic
#public static bool IsLodEnabled(Entity e)
Reads the Mesh Renderer component's Lod Enabled value of the entity.
methodstatic
#public static void SetLodEnabled(Entity e, bool value)
Sets the Mesh Renderer component's Lod Enabled value on the entity.
methodstatic
#public static bool IsForceLodEnabled(Entity e)
Reads the Mesh Renderer component's Force Lod Enabled value of the entity.
methodstatic
#public static void SetForceLodEnabled(Entity e, bool value)
Sets the Mesh Renderer component's Force Lod Enabled value on the entity.
methodstatic
#public static uint GetForcedLodLevel(Entity e)
Reads the Mesh Renderer component's Forced Lod Level value of the entity.
methodstatic
#public static void SetForcedLodLevel(Entity e, uint value)
Sets the Mesh Renderer component's Forced Lod Level value on the entity.
methodstatic
#public static float GetLodDistanceScale(Entity e)
Reads the Mesh Renderer component's Lod Distance Scale value of the entity.
methodstatic
#public static void SetLodDistanceScale(Entity e, float value)
Sets the Mesh Renderer component's Lod Distance Scale value on the entity.
methodstatic
#public static float GetMaxDrawDistance(Entity e)
Reads the Mesh Renderer component's Max Draw Distance value of the entity.
methodstatic
#public static void SetMaxDrawDistance(Entity e, float value)
Sets the Mesh Renderer component's Max Draw Distance value on the entity.
methodstatic
#public static ulong GetMesh(Entity e)
Reads the Mesh Renderer component's Mesh value of the entity.
methodstatic
#public static void SetMesh(Entity e, ulong value)
Sets the Mesh Renderer component's Mesh value on the entity.
methodstatic
#public static ulong GetMaterial(Entity e)
Reads the Mesh Renderer component's Material value of the entity.
methodstatic
#public static void SetMaterial(Entity e, ulong value)
Sets the Mesh Renderer component's Material value on the entity.
methodstatic
#public static ulong GetSkeleton(Entity e)
Reads the Mesh Renderer component's Skeleton value of the entity.
methodstatic
#public static void SetSkeleton(Entity e, ulong value)
Sets the Mesh Renderer component's Skeleton value on the entity.
methodstatic
#public static bool GetSkinningEnabled(Entity e)
Reads the Mesh Renderer component's Skinning Enabled value of the entity.
methodstatic
#public static void SetSkinningEnabled(Entity e, bool value)
Sets the Mesh Renderer component's Skinning Enabled value on the entity.
methodstatic
Signatures
public static bool Has(Entity e)
public static bool IsVisible(Entity e)
public static void SetVisible(Entity e, bool value)
public static bool IsOccluder(Entity e)
public static void SetOccluder(Entity e, bool value)
public static bool AllowsOcclusion(Entity e)
public static void SetAllowOcclusion(Entity e, bool value)
public static bool IsLodEnabled(Entity e)
public static void SetLodEnabled(Entity e, bool value)
public static bool IsForceLodEnabled(Entity e)
public static void SetForceLodEnabled(Entity e, bool value)
public static uint GetForcedLodLevel(Entity e)
public static void SetForcedLodLevel(Entity e, uint value)
public static float GetLodDistanceScale(Entity e)
public static void SetLodDistanceScale(Entity e, float value)
public static float GetMaxDrawDistance(Entity e)
public static void SetMaxDrawDistance(Entity e, float value)
public static ulong GetMesh(Entity e)
public static void SetMesh(Entity e, ulong value)
public static ulong GetMaterial(Entity e)
public static void SetMaterial(Entity e, ulong value)
public static ulong GetSkeleton(Entity e)
public static void SetSkeleton(Entity e, ulong value)
public static bool GetSkinningEnabled(Entity e)
public static void SetSkinningEnabled(Entity e, bool value)

KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.