# Set Portrait Camera
Grammar — Set Portrait camera to Camera
Flags —Native
|Action
Sets the portrait camera using string values.
# Arguments
int
[ portrait ] — Portraitstring
— Camera
Returns — void
native void PortraitSetCamera(int p, string cameraName);
# Related
Category: Portrait / Advanced
- [F] —
void
— Destroy All Portraits — ( PortraitDestroyAll ) - [F] —
void
— Destroy Portrait — ( PortraitDestroy ) - [F] —
void
— Play Portrait Animation — ( libNtve_gf_PortraitSetAnim ) - [F] —
void
— Set Portrait Camera — ( PortraitSetCamera ) - [F] —
void
— Set Portrait Border Texture — ( PortraitSetBorderTexture ) - [F] —
void
— Set Portrait Light — ( PortraitSetLight ) - [F] —
void
— Set Portrait Model — ( PortraitSetModel ) - [F] —
void
— Set Portrait Model And Play Animation — ( PortraitSetModelAnim ) - [F] —
void
— Set Portrait Position — ( PortraitSetPosition ) - [F] —
void
— Set Portrait Size — ( PortraitSetSize ) - [F] —
void
— Set Portrait Transition Model — ( PortraitSetTransitionModel ) - [F] —
void
— Set Portrait Mouse Target — ( PortraitSetMouseTarget ) - [F] —
void
— Set Portrait Channel — ( PortraitSetChannel ) - [F] —
void
— Set Portrait Render Type — ( PortraitSetRenderType ) - [F] —
void
— Mute/Unmute Portrait — ( PortraitSetMuted ) - [F] —
void
— Pause/Unpause Portrait — ( PortraitSetPaused ) - [F] —
void
— Set Portrait Tint Color — ( PortraitSetTintColor ) - [F] —
void
— Set Portrait Team Color — ( PortraitSetTeamColor ) - [F] —
void
— Set Portrait Actor — ( PortraitSetActor ) - [F] —
void
— Turn Portrait Border On/Off — ( PortraitSetBorderVisible ) - [F] —
void
— Turn Portrait Background On/Off — ( PortraitSetBackgroundVisible ) - [F] —
void
— Turn Portrait Fullscreen On/Off — ( PortraitSetFullscreen ) - [F] —
void
— Turn Portrait Offscreen On/Off — ( PortraitSetOffscreen ) - [F] —
void
— Turn Portrait Transition On/Off — ( PortraitUseTransition ) - [F] —
void
— Force Portrait Transition On/Off — ( PortraitForceTransition ) - [F] —
void
— Clear Portrait Animation — ( libNtve_gf_ClearPortraitAnimation ) - [F] —
void
— Wait For Portrait To Load — ( PortraitWaitForLoad )
# Examples
# campaigns/liberty.sc2campaign
// L10525
PortraitSetCamera(gv_zPlanetPanel_PortraitPlanet, "Star2 BattleNetGlue")
// L31148
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")
// L34095
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")
// L34100
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")
// L34103
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")
// L34106
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")
// L34110
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")
// L10525
PortraitSetCamera(gv_zPlanetPanel_PortraitPlanet, "Star2 BattleNetGlue")
// L31148
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")
// L34095
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")
// L34100
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")
// L34103
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")
// L34106
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")
// L34110
PortraitSetCamera(libNtve_gf_FullscreenPortrait(), "CameraWide")