Urho.Context Class

Urho3D execution context. Provides access to subsystems, object factories and attributes, and event receivers.

See Also: Context

Syntax

public class Context : RefCounted

Remarks

By default the empty constructors for nodes will create the objects in the current Context (Available in the Application.CurrentContext).   

Requirements

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

The members of Urho.Context are listed below.

See Also: RefCounted

Public Constructors

Construct.
Constructs a new instance of Urho.Context, given a raw pointer to an unmanaged object

Protected Constructors

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

Public Properties

[read-only]
EventHandlerIntPtr. Return active event handler. Set by Object. Null outside event handling.
[read-only]
EventSenderUrhoObject. Return active event sender. Null outside event handling.

Public Methods

CopyBaseAttributes(StringHash, StringHash)
Copy base class attributes to derived class.
CreateObject(StringHash) : UrhoObject
Create an object by type hash. Return pointer to it or null if no factory found.
GetEventReceivers(StringHash) : EventReceiverGroup
Return event receivers for a sender and event type, or null if they do not exist.
GetEventReceivers(UrhoObject, StringHash) : EventReceiverGroup
Return event receivers for an event type, or null if they do not exist.
GetSubsystem(StringHash) : UrhoObject
Return subsystem by type.
GetTypeName(StringHash) : String
Return object type name from hash, or empty if unknown.
RegisterFactory(ObjectFactory)
Register a factory for an object type.
RegisterSubsystem(UrhoObject)
Register a subsystem.
RemoveSubsystem(StringHash)
Remove a subsystem.
SetGlobalVar(StringHash, Int32)
Sets an Urho global variable to an integer value.
SetGlobalVar(StringHash, Single)
Sets an Urho global variable to an floating point value.
SetGlobalVar(StringHash, String)
Sets an Urho global variable to a string value.
SetGlobalVar(StringHash, Color)
Sets an Urho global variable to an Color value.
SetGlobalVar(StringHash, IntRect)
Sets an Urho global variable to an IntRect value.
SetGlobalVar(StringHash, IntVector2)
Sets an Urho global variable to an IntVector2 value.
SetGlobalVar(StringHash, Matrix3x4)
Set global variable with the respective key and value
SetGlobalVar(StringHash, Matrix4)
Sets an Urho global variable to an Matrix4 value.
SetGlobalVar(StringHash, Quaternion)
Sets an Urho global variable to a Quaternion value.
SetGlobalVar(StringHash, Vector2)
Sets an Urho global variable to a Vector2 value.
SetGlobalVar(StringHash, Vector3)
Sets an Urho global variable to a Vector3 value.
SetGlobalVar(StringHash, Vector4)
Sets an Urho global variable to Vector4 value.