# Set Camera Channel On Portrait
Grammar — Set camera from camera for player player to render-to-texture channel channel using aspect ratio aspectRatio|AspectRatio on portrait portrait
Flags —Native
|Action
In order to use this, you must first create a portrait through triggers. You can then use this action to have a camera object on that portrait render to a render-to-texture channel.
# Arguments
int
— Playercamerainfo
— Camerafixed
— Aspect Ratioint
<portrait> — Portraitint
— Channel
Returns — void
native void CameraSetChannelOnPortrait(
int player,
camerainfo c,
fixed aspectRatio,
int portraitId,
int channel,
);
# Related
Category: Camera / Basic
- Apply Camera Object —
void
— CameraApplyInfo - Default Game Camera —
camerainfo
— CameraInfoDefault - Pan Camera —
void
— CameraPan - Make Camera Look At —
void
— CameraLookAt - Camera Target Of Player —
point
— CameraGetTarget - Camera Pitch of Player —
fixed
— CameraGetPitch - Camera Yaw of Player —
fixed
— CameraGetYaw - Camera Distance of Player —
fixed
— CameraGetDistance - Save Camera —
void
— CameraSave - Restore Camera —
void
— CameraRestore - Set Camera Channel On Portrait —
void
— CameraSetChannelOnPortrait - Clear Camera Channel On Portrait —
void
— CameraClearChannelOnPortrait - Set Camera Data —
void
— CameraSetData
# Examples
— None found —