S&box Wiki




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.