FaceCamSetTargetTextureHeight() публичный статический Метод

public static FaceCamSetTargetTextureHeight ( int textureHeight ) : void
textureHeight int
Результат void
Пример #1
0
 public void faceCamSetTargetTextureHeight(int val)
 {
     #if BROADCAST_USE_EVERYPLAY
     Everyplay.FaceCamSetTargetTextureHeight(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;
        }
    }
Пример #3
0
 public void FaceCamSetTargetTextureHeight(int textureHeight)
 {
     Everyplay.FaceCamSetTargetTextureHeight(textureHeight);
 }