Urho.Zone Class

%Component that describes global rendering properties.

See Also: Zone

Syntax

public class Zone : Drawable

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.Zone are listed below.

See Also: Drawable

Public Constructors

Constructs a new instance of Urho.Zone which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Zone, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Zone linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

AmbientColorColor. Return zone's own ambient color, disregarding gradient mode. Or Set ambient color
[read-only]
AmbientEndColorColor. Return ambient end color. Not safe to call from worker threads due to possible octree query.
AmbientGradientBoolean. Return whether ambient gradient mode is enabled. Or Set ambient gradient mode. In gradient mode ambient color is interpolated from neighbor zones.
[read-only]
AmbientStartColorColor. Return ambient start color. Not safe to call from worker threads due to possible octree query.
FogColorColor. Return fog color. Or Set fog color.
FogEndSingle. Return fog end distance. Or Set fog end distance.
FogHeightSingle. Return fog height distance relative to the scene node's world position. Or Set fog height distance relative to the scene node's world position. Effective only in height fog mode.
FogHeightScaleSingle. Return fog height scale. Or Set fog height scale. Effective only in height fog mode.
FogStartSingle. Return fog start distance. Or Set fog start distance.
HeightFogBoolean. Return whether height fog mode is enabled. Or Set height fog mode.
[read-only]
InverseWorldTransformMatrix3x4. Return inverse world transform.
OverrideBoolean. Return whether override mode is enabled. Or Set override mode. If camera is inside an override zone, that zone will be used for all rendered objects instead of their own zone.
PriorityInt32. Return zone priority. Or Set zone priority. If an object or camera is inside several zones, the one with highest priority is used.
[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.
ZoneTextureTexture. Return zone texture. Or Set zone texture. This will be bound to the zone texture unit when rendering objects inside the zone. Note that the default shaders do not use it.
[read-only]
ZoneTextureAttrResourceRef. Return zone texture attribute.

Public Methods

override
DrawDebugGeometry(DebugRenderer, Boolean)
Visualize the component as debug geometry.
IsInside(Vector3) : Boolean
Check whether a point is inside.
static
RegisterObject(Context)
Register object factory. Drawable must be registered first.
SetBoundingBox(BoundingBox)
Set local-space bounding box. Will be used as an oriented bounding box to test whether objects or the camera are inside.