# Set Camera Channel
Grammar — Set model camera name from u for player player to render-to-texture channel channel using aspect ratio aspectRatio|AspectRatio.
Flags —Native
|Action
Sets a model camera for the specified unit to be rendered to the specified render-to-texture channel.
# Arguments
int
— Playerunit
— CameraUnitstring
[ modelcamera ] — Camera Nameint
— Channelfixed
— Aspect Ratio
Returns — void
native void CameraSetChannel(
int player,
unit cameraUnit,
string cameraName,
int channel,
fixed aspectRatio,
);
# Related
Category: Camera / Model Cameras
- [F] —
void
— Use Model Camera — ( CameraUseModel ) - [F] —
void
— Set Camera Channel — ( CameraSetChannel ) - [F] —
void
— Clear Camera Channel — ( CameraClearChannel )
# Examples
# campaigns/void.sc2campaign
// L1192
CameraSetChannel(1, libVCST_gf_ClickableUnit("BridgeConsole"), "SMC2_Bridge_Communicator_Camera", 1, 1.0)
// L1192
CameraSetChannel(1, libVCST_gf_ClickableUnit("BridgeConsole"), "SMC2_Bridge_Communicator_Camera", 1, 1.0)
# mods/starcoop/starcoop.sc2mod
// L6631
CameraSetChannel(libCOMI_gv_cM_ZeratulPlayer, libCOMI_gv_cM_ZeratulProphecyCamera, "Camera_Basic", 1, 1.0)