Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBRemoteCamera
Behavior adding support for ECBehaviorCamera to be used remotely. Defines a name used to select the camera in remote view list models. Upon being added to game worlds adds itself to the global list of available remote views.
This element behavior can be present multiple times in a BehaviorElement. In this case use a unique identifier to distinguish the individual behavior instances.
Element class properties have the prefix remoteCamera.
or remoteCamera({id}).
if id is not empty.
Name to display in UI for this remote camera. User can change this name in the behavior panel.
remoteCamera.name
or remoteCamera({id}).name
Camera
<string name='remoteCamera.name'>Camera</string>
This behavior has no events.
This behavior adds no conversation commands.
This behavior adds no conversation conditions.
This behavior adds no behavior tree actions.
This behavior does not support optional behaviors.
Since DEMoCap Version 1.3
class MyElement extends BehaviorElementClass public var ECBehaviorCollider collider public var ECBehaviorCamera camera public var ECBBehaviorGuiPanels guiPanels func new() collider = ECBehaviorCollider.new(this, null) camera = ECBehaviorCamera.new(this, collider) guiPanels = ECBBehaviorGuiPanels.new(this) remoteCamera = ECBRemoteCamera.new(this, guiPanels, camera) end end
Using element class supporting adding behaviors the behavior can be added like this (again create an example which creates a valid element class):
<?xml version='1.0' encoding='UTF-8'?> <elementClass name='MyClass' class='GenericBehaviorElement'> <behavior type='ECBehaviorCollider'/> <behavior type='ECBehaviorCamera'/> <behavior type='ECBBehaviorGuiPanels'/> <behavior type='ECBRemoteCamera'> <!-- optional: use camera with id instead of empty string --> <string name='camera'>second</string> <!-- set element properties. omit property prefix if used inside behavior tag --> <string name='.name'>Camera</string> </behavior> <!-- for adding multiple behaviors use unique identifiers --> <behavior type='ECBRemoteCamera' id='second'/> </elementClass>