void Start() { monitorRes = FindObjectOfType <uDesktopDuplication.Texture>(); mouseControl = new MouseApi(); mouseControl.setScreenBounds((float)monitorRes.monitor.width, (float)monitorRes.monitor.height); laserLine = GetComponent <LineRenderer>(); }
void Start() { feedback = labelFeedback.GetComponent <HoverItemDataText>(); radioSize = radioMonitorSize.GetComponent <HoverItemDataRadio>(); radioBend = radioMonitorBend.GetComponent <HoverItemDataRadio>(); radioZoom = radioMonitorZoom.GetComponent <HoverItemDataRadio>(); monitorTexture = monitor.GetComponent <uDesktopDuplication.Texture>(); monitorTransform = monitor.GetComponent <Transform>(); grabGesture = grabManager.GetComponent <GrabGestureTwoHands>(); if (bendMinValue < 3.1f && bendMinValue > 70f) { bendMinValue = 3.1f; } if (bendMaxValue < 3.1f && bendMaxValue > 70f) { bendMaxValue = 70f; } bendOriginalMinValue = bendMinValue; monitorOriginalSizeX = monitorTransform.localScale.x; monitorLastSizeX = monitorOriginalSizeX; scaleMinX = scaleMinValue * monitorTransform.localScale.x; scaleMaxX = scaleMaxValue * monitorTransform.localScale.x; scaleMinY = scaleMinValue * monitorTransform.localScale.y; scaleMaxY = scaleMaxValue * monitorTransform.localScale.y; scaleSpeedX = monitorTransform.localScale.x * scaleModifier; scaleSpeedY = monitorTransform.localScale.y * scaleModifier; }
void Start() { uddTexture_ = GetComponent <uDesktopDuplication.Texture>(); Assert.IsNotNull(uddTexture_); dispTexId_ = Shader.PropertyToID("_DispTex"); dispFactorId_ = Shader.PropertyToID("_DispFactor"); tessMinDistId_ = Shader.PropertyToID("_TessMinDist"); tessMaxDistId_ = Shader.PropertyToID("_TessMaxDist"); tessFactorId_ = Shader.PropertyToID("_TessFactor"); }
void Start() { //座標を記憶、初期スケールに設定 startNormalScale = transform.localScale; startFullScale = new Vector3(119f, 76f, 0f); startScale = startNormalScale; startPos = transform.localPosition; //ボタン座標を記録 FullscrrenObjectStartPosLocal = FullscrrenObject.transform.localPosition; FullscrrenObjectStartPos = new Vector3(-0.1732039f, 36.17097f, 90f); //インスタンス取得 desktop = GetComponent <uDesktopDuplication.Texture>(); loupe = GetComponent <Loupe>(); //uDD公式ルーペ FreeLoupe = GetComponent <FreeLoupeWorkerScript>(); //自作フリールーペ //初期状態設定 loupe.enabled = false; desktop.useClip = false; fullscreen = false; zoom = false; }
void Start() { uddTexture_ = GetComponent <uDesktopDuplication.Texture>(); uddTexture_.useClip = true; }
void Start() { uDDtexture = GetComponent <uDesktopDuplication.Texture>(); }
void Start() { uddTexture_ = GetComponent <uDesktopDuplication.Texture>(); averageCoord_ = new Vector2(uddTexture_.monitor.width / 2, uddTexture_.monitor.height / 2); }