S&box Wiki

Sandbox.RenderEntity

Sandbox.RenderEntity

Fields

Methods

void DoRender( Sandbox.SceneObject obj )
Render this entity. Here's some warnings: This is called in a thread. Don't create/delete/move entities in this loop This can be called multiple times per frame for different scene layers. For example, once to draw the shadow caster, once to draw the opaque object, once to draw the transparent object. Obviously which of these get called depends on your object setup. Check Render. Layer to determine which layer is being rendered.
void OnActive()
void UpdateSceneObject( Sandbox.SceneObject obj )
Keep the scene object updated. By default this moves the transform to match this entity's transform and updates the bounds to the new position.

Special Pages


Wikis

?

Render Time: 13ms

DB GetPage 2
Generate Html 0
SaveChanges (1) 7
Render Body 0
Render Sidebar 1