CameraWidget::SetCameraConnectorKey
Defined in:
Sets the connector key that identifies the camera node.
C4Panels.h
Prototype
void SetCameraConnectorKey(const ConnectorKey& key);
Parameters
key |
Thew new camera connector key. |
Description
The SetCameraConnectorKey
function sets the connector key that identifies the camera node used to render the camera widget's source image. The key
parameter should identify a connector attached to the panel effect node containing the camera widget, and that connector should be connected to a FrustumCamera
node. The connected camera must be a node that is part of the scene graph, and it cannot be the current camera that has been established with the World::SetWorldCamera
function.The camera connector key can be changed at any time without incurring a performance penalty specifically due to the change itself. It is not necessary to invalidate the widget after changing the camera connector key.
The initial value of the camera connector key is the empty string.
See Also