public static FaceCamSetTargetTextureWidth ( int textureWidth ) : void | ||
textureWidth | int | |
return | void |
public void faceCamSetTargetTextureWidth(int val) { #if BROADCAST_USE_EVERYPLAY Everyplay.FaceCamSetTargetTextureWidth(val); #else #endif }
void Awake() { targetTexture = new Texture2D(textureSideWidth, textureSideWidth, textureFormat, false); targetTexture.wrapMode = textureWrapMode; if (targetMaterial && targetTexture) { defaultTexture = targetMaterial.mainTexture; Everyplay.FaceCamSetTargetTextureId(targetTexture.GetNativeTextureID()); Everyplay.FaceCamSetTargetTextureWidth(textureSideWidth); Everyplay.FaceCamSetTargetTextureHeight(textureSideWidth); Everyplay.FaceCamSessionStarted += OnSessionStart; Everyplay.FaceCamSessionStopped += OnSessionStop; } }
public void FaceCamSetTargetTextureWidth(int textureWidth) { Everyplay.FaceCamSetTargetTextureWidth(textureWidth); }