Esempio n. 1
0
		void OnEnable () {
			profile = serializedObject.FindProperty ("profile");
			profileSync = serializedObject.FindProperty ("profileSync");
			ignoreObjectVisibility = serializedObject.FindProperty ("ignoreObjectVisibility");
			ignore = serializedObject.FindProperty ("ignore");
			previewInEditor = serializedObject.FindProperty ("previewInEditor");
			highlighted = serializedObject.FindProperty ("_highlighted");
			fadeInDuration = serializedObject.FindProperty ("fadeInDuration");
			fadeOutDuration = serializedObject.FindProperty ("fadeOutDuration");
			overlay = serializedObject.FindProperty ("overlay");
			overlayColor = serializedObject.FindProperty ("overlayColor");
			overlayAnimationSpeed = serializedObject.FindProperty ("overlayAnimationSpeed");
			overlayMinIntensity = serializedObject.FindProperty ("overlayMinIntensity");
			overlayBlending = serializedObject.FindProperty ("overlayBlending");
			outline = serializedObject.FindProperty ("outline");
			outlineColor = serializedObject.FindProperty ("outlineColor");
			outlineWidth = serializedObject.FindProperty ("outlineWidth");
			outlineHQ = serializedObject.FindProperty ("outlineHQ");
			outlineAlwaysOnTop = serializedObject.FindProperty ("outlineAlwaysOnTop");
			outlineCullBackFaces = serializedObject.FindProperty ("outlineCullBackFaces");
			glow = serializedObject.FindProperty ("glow");
			glowWidth = serializedObject.FindProperty ("glowWidth");
			glowHQ = serializedObject.FindProperty ("glowHQ");
			glowAnimationSpeed = serializedObject.FindProperty ("glowAnimationSpeed");
			glowDithering = serializedObject.FindProperty ("glowDithering");
			glowMagicNumber1 = serializedObject.FindProperty ("glowMagicNumber1");
			glowMagicNumber2 = serializedObject.FindProperty ("glowMagicNumber2");
			glowAnimationSpeed = serializedObject.FindProperty ("glowAnimationSpeed");
			glowPasses = serializedObject.FindProperty ("glowPasses");
			glowAlwaysOnTop = serializedObject.FindProperty ("glowAlwaysOnTop");
			glowCullBackFaces = serializedObject.FindProperty ("glowCullBackFaces");
			innerGlow = serializedObject.FindProperty ("innerGlow");
			innerGlowColor = serializedObject.FindProperty ("innerGlowColor");
			innerGlowWidth = serializedObject.FindProperty ("innerGlowWidth");
			innerGlowAlwaysOnTop = serializedObject.FindProperty ("innerGlowAlwaysOnTop");
			seeThrough = serializedObject.FindProperty ("seeThrough");
			seeThroughIntensity = serializedObject.FindProperty ("seeThroughIntensity");
			seeThroughTintAlpha = serializedObject.FindProperty ("seeThroughTintAlpha");
			seeThroughTintColor = serializedObject.FindProperty ("seeThroughTintColor");
			targetFX = serializedObject.FindProperty ("targetFX");
			targetFXTexture = serializedObject.FindProperty ("targetFXTexture");
			targetFXRotationSpeed = serializedObject.FindProperty ("targetFXRotationSpeed");
			targetFXInitialScale = serializedObject.FindProperty ("targetFXInitialScale");
			targetFXEndScale = serializedObject.FindProperty ("targetFXEndScale");
			targetFXColor = serializedObject.FindProperty ("targetFXColor");
			targetFXCenter = serializedObject.FindProperty ("targetFXCenter");
			targetFXTransitionDuration = serializedObject.FindProperty ("targetFXTransitionDuration");
			targetFXStayDuration = serializedObject.FindProperty ("targetFXStayDuration");
			thisEffect = (HighlightEffect)target;
			thisEffect.Refresh ();
		}
Esempio n. 2
0
 void OnEnable()
 {
     profile                = serializedObject.FindProperty("profile");
     profileSync            = serializedObject.FindProperty("profileSync");
     ignoreObjectVisibility = serializedObject.FindProperty("ignoreObjectVisibility");
     reflectionProbes       = serializedObject.FindProperty("reflectionProbes");
     ignore                = serializedObject.FindProperty("ignore");
     previewInEditor       = serializedObject.FindProperty("previewInEditor");
     effectGroup           = serializedObject.FindProperty("effectGroup");
     effectGroupLayer      = serializedObject.FindProperty("effectGroupLayer");
     alphaCutOff           = serializedObject.FindProperty("alphaCutOff");
     cullBackFaces         = serializedObject.FindProperty("cullBackFaces");
     highlighted           = serializedObject.FindProperty("_highlighted");
     fadeInDuration        = serializedObject.FindProperty("fadeInDuration");
     fadeOutDuration       = serializedObject.FindProperty("fadeOutDuration");
     flipY                 = serializedObject.FindProperty("flipY");
     constantWidth         = serializedObject.FindProperty("constantWidth");
     overlay               = serializedObject.FindProperty("overlay");
     overlayColor          = serializedObject.FindProperty("overlayColor");
     overlayAnimationSpeed = serializedObject.FindProperty("overlayAnimationSpeed");
     overlayMinIntensity   = serializedObject.FindProperty("overlayMinIntensity");
     overlayBlending       = serializedObject.FindProperty("overlayBlending");
     outline               = serializedObject.FindProperty("outline");
     outlineColor          = serializedObject.FindProperty("outlineColor");
     outlineWidth          = serializedObject.FindProperty("outlineWidth");
     outlineQuality        = serializedObject.FindProperty("outlineQuality");
     outlineAlwaysOnTop    = serializedObject.FindProperty("outlineAlwaysOnTop");
     outlineOptimalBlit    = serializedObject.FindProperty("outlineOptimalBlit");
     outlineBlitDebug      = serializedObject.FindProperty("outlineBlitDebug");
     outlineDownsampling   = serializedObject.FindProperty("outlineDownsampling");
     glow                       = serializedObject.FindProperty("glow");
     glowWidth                  = serializedObject.FindProperty("glowWidth");
     glowQuality                = serializedObject.FindProperty("glowQuality");
     glowHQColor                = serializedObject.FindProperty("glowHQColor");
     glowAnimationSpeed         = serializedObject.FindProperty("glowAnimationSpeed");
     glowDithering              = serializedObject.FindProperty("glowDithering");
     glowMagicNumber1           = serializedObject.FindProperty("glowMagicNumber1");
     glowMagicNumber2           = serializedObject.FindProperty("glowMagicNumber2");
     glowAnimationSpeed         = serializedObject.FindProperty("glowAnimationSpeed");
     glowPasses                 = serializedObject.FindProperty("glowPasses");
     glowAlwaysOnTop            = serializedObject.FindProperty("glowAlwaysOnTop");
     glowOptimalBlit            = serializedObject.FindProperty("glowOptimalBlit");
     glowBlitDebug              = serializedObject.FindProperty("glowBlitDebug");
     glowDownsampling           = serializedObject.FindProperty("glowDownsampling");
     innerGlow                  = serializedObject.FindProperty("innerGlow");
     innerGlowColor             = serializedObject.FindProperty("innerGlowColor");
     innerGlowWidth             = serializedObject.FindProperty("innerGlowWidth");
     innerGlowAlwaysOnTop       = serializedObject.FindProperty("innerGlowAlwaysOnTop");
     seeThrough                 = serializedObject.FindProperty("seeThrough");
     seeThroughIntensity        = serializedObject.FindProperty("seeThroughIntensity");
     seeThroughTintAlpha        = serializedObject.FindProperty("seeThroughTintAlpha");
     seeThroughTintColor        = serializedObject.FindProperty("seeThroughTintColor");
     targetFX                   = serializedObject.FindProperty("targetFX");
     targetFXTexture            = serializedObject.FindProperty("targetFXTexture");
     targetFXRotationSpeed      = serializedObject.FindProperty("targetFXRotationSpeed");
     targetFXInitialScale       = serializedObject.FindProperty("targetFXInitialScale");
     targetFXEndScale           = serializedObject.FindProperty("targetFXEndScale");
     targetFXColor              = serializedObject.FindProperty("targetFXColor");
     targetFXCenter             = serializedObject.FindProperty("targetFXCenter");
     targetFXTransitionDuration = serializedObject.FindProperty("targetFXTransitionDuration");
     targetFXStayDuration       = serializedObject.FindProperty("targetFXStayDuration");
     thisEffect                 = (HighlightEffect)target;
     thisEffect.Refresh();
 }