# Set Portrait Channel
Grammar — Set Portrait channel to channel
Flags —Native
|Action
Sets the render-to-texture channel for the specified portrait, which determines where the portrait textures can appear in the game.
# Arguments
int
[ portrait ] — Portraitint
— Channel
Returns — void
native void PortraitSetChannel(int p, int channel);
# 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
// L13375
PortraitSetChannel(PortraitLastCreated(), lv_channel)
// L26477
PortraitSetChannel(gv_bridgeCommunicatorPortraitValerian, 4)
// L26504
PortraitSetChannel(gv_bridgeCommunicatorPortraitValerian, 1)
// L26513
PortraitSetChannel(gv_bridgeCommunicatorPortraitValerian, 1)
// L26541
PortraitSetChannel(gv_bridgeCommunicatorPortraitValerian, 1)
// L29113
PortraitSetChannel(lv_portaitMiddle, 1)
// L30005
PortraitSetChannel(lv_portaitMiddleHan, 1)
// L30021
PortraitSetChannel(lv_portaitLeft1, 2)
// L30989
PortraitSetChannel(lv_portaitMiddle, 1)
// L32885
PortraitSetChannel(lv_portaitMiddle, 1)
// L13375
PortraitSetChannel(PortraitLastCreated(), lv_channel)
// L26477
PortraitSetChannel(gv_bridgeCommunicatorPortraitValerian, 4)
// L26504
PortraitSetChannel(gv_bridgeCommunicatorPortraitValerian, 1)
// L26513
PortraitSetChannel(gv_bridgeCommunicatorPortraitValerian, 1)
// L26541
PortraitSetChannel(gv_bridgeCommunicatorPortraitValerian, 1)
// L29113
PortraitSetChannel(lv_portaitMiddle, 1)
// L30005
PortraitSetChannel(lv_portaitMiddleHan, 1)
// L30021
PortraitSetChannel(lv_portaitLeft1, 2)
// L30989
PortraitSetChannel(lv_portaitMiddle, 1)
// L32885
PortraitSetChannel(lv_portaitMiddle, 1)