public void Save(HighlightEffect effect) { effectGroup = effect.effectGroup; effectGroupLayer = effect.effectGroupLayer; alphaCutOff = effect.alphaCutOff; cullBackFaces = effect.cullBackFaces; depthClip = effect.depthClip; fadeInDuration = effect.fadeInDuration; fadeOutDuration = effect.fadeOutDuration; overlay = effect.overlay; overlayColor = effect.overlayColor; overlayAnimationSpeed = effect.overlayAnimationSpeed; overlayMinIntensity = effect.overlayMinIntensity; overlayBlending = effect.overlayBlending; outline = effect.outline; outlineColor = effect.outlineColor; outlineWidth = effect.outlineWidth; outlineQuality = effect.outlineQuality; outlineDownsampling = effect.outlineDownsampling; outlineVisibility = effect.outlineVisibility; outlineIndependent = effect.outlineIndependent; outlineOptimalBlit = effect.outlineOptimalBlit; glow = effect.glow; glowWidth = effect.glowWidth; glowQuality = effect.glowQuality; glowOptimalBlit = effect.glowOptimalBlit; glowDownsampling = effect.glowDownsampling; glowHQColor = effect.glowHQColor; glowDithering = effect.glowDithering; glowMagicNumber1 = effect.glowMagicNumber1; glowMagicNumber2 = effect.glowMagicNumber2; glowAnimationSpeed = effect.glowAnimationSpeed; glowVisibility = effect.glowVisibility; glowBlendMode = effect.glowBlendMode; glowPasses = GetGlowPassesCopy(effect.glowPasses); innerGlow = effect.innerGlow; innerGlowWidth = effect.innerGlowWidth; innerGlowColor = effect.innerGlowColor; innerGlowVisibility = effect.innerGlowVisibility; targetFX = effect.targetFX; targetFXColor = effect.targetFXColor; targetFXEndScale = effect.targetFXEndScale; targetFXInitialScale = effect.targetFXInitialScale; targetFXRotationSpeed = effect.targetFXRotationSpeed; targetFXStayDuration = effect.targetFXStayDuration; targetFXTexture = effect.targetFXTexture; targetFXTransitionDuration = effect.targetFXTransitionDuration; seeThrough = effect.seeThrough; seeThroughOccluderMask = effect.seeThroughOccluderMask; seeThroughOccluderThreshold = effect.seeThroughOccluderThreshold; seeThroughOccluderCheckInterval = effect.seeThroughOccluderCheckInterval; seeThroughIntensity = effect.seeThroughIntensity; seeThroughTintAlpha = effect.seeThroughTintAlpha; seeThroughTintColor = effect.seeThroughTintColor; seeThroughNoise = effect.seeThroughNoise; seeThroughBorder = effect.seeThroughBorder; seeThroughBorderColor = effect.seeThroughBorderColor; seeThroughBorderWidth = effect.seeThroughBorderWidth; }
public void Save(HighlightEffect effect) { effectGroup = effect.effectGroup; effectGroupLayer = effect.effectGroupLayer; effectNameFilter = effect.effectNameFilter; combineMeshes = effect.combineMeshes; alphaCutOff = effect.alphaCutOff; cullBackFaces = effect.cullBackFaces; normalsOption = effect.normalsOption; fadeInDuration = effect.fadeInDuration; fadeOutDuration = effect.fadeOutDuration; constantWidth = effect.constantWidth; overlay = effect.overlay; overlayColor = effect.overlayColor; overlayAnimationSpeed = effect.overlayAnimationSpeed; overlayMinIntensity = effect.overlayMinIntensity; overlayBlending = effect.overlayBlending; outline = effect.outline; outlineColor = effect.outlineColor; outlineWidth = effect.outlineWidth; outlineQuality = effect.outlineQuality; outlineDownsampling = effect.outlineDownsampling; outlineVisibility = effect.outlineVisibility; outlineIndependent = effect.outlineIndependent; glow = effect.glow; glowWidth = effect.glowWidth; glowQuality = effect.glowQuality; glowDownsampling = effect.glowDownsampling; glowHQColor = effect.glowHQColor; glowDithering = effect.glowDithering; glowMagicNumber1 = effect.glowMagicNumber1; glowMagicNumber2 = effect.glowMagicNumber2; glowAnimationSpeed = effect.glowAnimationSpeed; glowVisibility = effect.glowVisibility; glowBlendPasses = effect.glowBlendPasses; glowPasses = GetGlowPassesCopy(effect.glowPasses); innerGlow = effect.innerGlow; innerGlowWidth = effect.innerGlowWidth; innerGlowColor = effect.innerGlowColor; innerGlowVisibility = effect.innerGlowVisibility; targetFX = effect.targetFX; targetFXColor = effect.targetFXColor; targetFXEndScale = effect.targetFXEndScale; targetFXInitialScale = effect.targetFXInitialScale; targetFXRotationSpeed = effect.targetFXRotationSpeed; targetFXStayDuration = effect.targetFXStayDuration; targetFXTexture = effect.targetFXTexture; targetFXTransitionDuration = effect.targetFXTransitionDuration; seeThrough = effect.seeThrough; seeThroughIntensity = effect.seeThroughIntensity; seeThroughTintAlpha = effect.seeThroughTintAlpha; seeThroughTintColor = effect.seeThroughTintColor; seeThroughNoise = effect.seeThroughNoise; seeThroughBorder = effect.seeThroughBorder; seeThroughBorderColor = effect.seeThroughBorderColor; seeThroughBorderWidth = effect.seeThroughBorderWidth; }
void OnGUI() { if (DisplayCameraModeSwitchButton) { if (GUI.Button(new Rect(Screen.width - 75, 0, 75, 75), "C")) { SeeThroughMode = (SeeThroughMode == SeeThroughMode.Video) ? SeeThroughMode.HoloKit : SeeThroughMode.Video; } } }
void Update() { LeftCamera.gameObject.SetActive(SeeThroughMode == SeeThroughMode.HoloKit); RightCamera.gameObject.SetActive(SeeThroughMode == SeeThroughMode.HoloKit); bool arVideoEnabled = (SeeThroughMode == SeeThroughMode.Video); CenterCamera.cullingMask = arVideoEnabled ? centerCullingMask : 0; if (HoloKitInputManager.Instance.GetKeyDown(SeeThroughModeToggleKey)) { SeeThroughMode = (SeeThroughMode == SeeThroughMode.Video) ? SeeThroughMode.HoloKit : SeeThroughMode.Video; } }
void OnGUI() { if (SeeThroughMode == SeeThroughMode.HoloKit) { GUI.Box(new Rect(0, 0, Screen.width, Screen.height * (1 - 16f / 2f / 9f)), GUIContent.none, rectStyle); } if (DisplayCameraModeSwitchButton) { if (GUI.Button(new Rect(Screen.width - 75, 0, 75, 75), "C")) { SeeThroughMode = (SeeThroughMode == SeeThroughMode.Video) ? SeeThroughMode.HoloKit : SeeThroughMode.Video; } } }
public void Save(HighlightEffect effect) { effectGroup = effect.effectGroup; effectGroupLayer = effect.effectGroupLayer; alphaCutOff = effect.alphaCutOff; cullBackFaces = effect.cullBackFaces; fadeInDuration = effect.fadeInDuration; fadeOutDuration = effect.fadeOutDuration; overlay = effect.overlay; overlayColor = effect.overlayColor; overlayAnimationSpeed = effect.overlayAnimationSpeed; overlayMinIntensity = effect.overlayMinIntensity; overlayBlending = effect.overlayBlending; outline = effect.outline; outlineColor = effect.outlineColor; outlineWidth = effect.outlineWidth; outlineQuality = effect.outlineQuality; outlineAlwaysOnTop = effect.outlineAlwaysOnTop; glow = effect.glow; glowWidth = effect.glowWidth; glowQuality = effect.glowQuality; glowHQColor = effect.glowHQColor; glowDithering = effect.glowDithering; glowMagicNumber1 = effect.glowMagicNumber1; glowMagicNumber2 = effect.glowMagicNumber2; glowAnimationSpeed = effect.glowAnimationSpeed; glowAlwaysOnTop = effect.glowAlwaysOnTop; glowPasses = GetGlowPassesCopy(effect.glowPasses); innerGlow = effect.innerGlow; innerGlowWidth = effect.innerGlowWidth; innerGlowColor = effect.innerGlowColor; innerGlowAlwaysOnTop = effect.innerGlowAlwaysOnTop; targetFX = effect.targetFX; targetFXColor = effect.targetFXColor; targetFXEndScale = effect.targetFXEndScale; targetFXInitialScale = effect.targetFXInitialScale; targetFXRotationSpeed = effect.targetFXRotationSpeed; targetFXStayDuration = effect.targetFXStayDuration; targetFXTexture = effect.targetFXTexture; targetFXTransitionDuration = effect.targetFXTransitionDuration; seeThrough = effect.seeThrough; seeThroughIntensity = effect.seeThroughIntensity; seeThroughTintAlpha = effect.seeThroughTintAlpha; seeThroughTintColor = effect.seeThroughTintColor; }