a#m5.5.1f1ţ˙˙˙˙˙Č0ĹňĂôL.`?^Ů0D7€˙˙˙˙€Ś€˛€ЀŚ€Ś€Ś€#Ś€+H€3˙˙˙˙€1€1€˙˙˙˙@ހ€ Q€j€ ™€< Ś€H H€Z˙˙˙˙ €1€1€˙˙˙˙@ހ€Q€j€ЀgŚ€Ś€Ś€#Ś€+v~ € €– €Ÿ €¨ €ą €ş €Ă €Ě €Ő €Ţ  €ç! €ń" €ű# €$ €% €&Ő€#˙˙˙˙'€1€1€˙˙˙˙(€ހ€)H€j€˙˙˙˙*€1€1€˙˙˙˙+@ހ€,Q€j€-™€*.ހ8/AssetMetaDataguiddata[0]data[1]data[2]data[3]pathNametimeCreatedoriginalChangesetoriginalNameoriginalParentHash128originalDigestbytes[0]bytes[1]bytes[2]bytes[3]bytes[4]bytes[5]bytes[6]bytes[7]bytes[8]bytes[9]bytes[10]bytes[11]bytes[12]bytes[13]bytes[14]bytes[15]labelsassetStoreReflicenseType ˙˙z{ď@îČă5^(H'7€˙˙˙˙€Ś€˛€ Ő€ ހ#.€,†€Ä€ ހ#.€,H€Ť€˙˙˙˙€1€1€˙˙˙˙ @ހ€ Q€j€ Ő€5˙˙˙˙ €1€1€˙˙˙˙ €ހ€€j€˙˙˙˙€H€›€˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€y€ € ހ#.€, €I@ž€X @ހ#.€,H€]˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€H€h˙˙˙˙€1€1€˙˙˙˙ @ހ€!Q€j€"H€z˙˙˙˙#€1€1€˙˙˙˙$@ހ€%Q€j€&MonoImporterPPtrm_FileIDm_PathIDm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariants˙˙˙8-l'€Łć„hŒÎA,Œ€7€˙˙˙˙€Ś€˛€Ő€ ހ.€†€Ä€ ހ.€H€Ť€˙˙˙˙€1€1€˙˙˙˙ @ހ€ Q€j€ H€ę€˙˙˙˙ €1€1€˙˙˙˙ @ހ€Q€j€ń€(˙˙˙˙€1€1€˙˙˙˙€ހ€€j€˙˙˙˙€H€›€˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€y€ € ހ.€y€< ހ.€ހCH€T˙˙˙˙€1€1€˙˙˙˙ @ހ€!Q€j€"H€`˙˙˙˙#€1€1€˙˙˙˙$@ހ€%Q€j€&H€l˙˙˙˙'€1€1€˙˙˙˙(@ހ€)Q€j€*L€{+PPtrm_FileIDm_PathIDm_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespacem_AssemblyNamem_IsEditorScript¤¨@ŕyŻč…Jš„ů7NC¤;ĎyŰ_q°IAssets/Standard Assets/Editor/ImageEffects/ColorCorrectionCurvesEditor.csColorCorrectionCurvesEditorÄusing System; using UnityEditor; using UnityEngine; namespace UnityStandardAssets.ImageEffects { [CustomEditor (typeof(ColorCorrectionCurves))] class ColorCorrectionCurvesEditor : Editor { SerializedObject serObj; SerializedProperty mode; SerializedProperty redChannel; SerializedProperty greenChannel; SerializedProperty blueChannel; SerializedProperty useDepthCorrection; SerializedProperty depthRedChannel; SerializedProperty depthGreenChannel; SerializedProperty depthBlueChannel; SerializedProperty zCurveChannel; SerializedProperty saturation; SerializedProperty selectiveCc; SerializedProperty selectiveFromColor; SerializedProperty selectiveToColor; private bool applyCurveChanges = false; void OnEnable () { serObj = new SerializedObject (target); mode = serObj.FindProperty ("mode"); saturation = serObj.FindProperty ("saturation"); redChannel = serObj.FindProperty ("redChannel"); greenChannel = serObj.FindProperty ("greenChannel"); blueChannel = serObj.FindProperty ("blueChannel"); useDepthCorrection = serObj.FindProperty ("useDepthCorrection"); zCurveChannel = serObj.FindProperty ("zCurve"); depthRedChannel = serObj.FindProperty ("depthRedChannel"); depthGreenChannel = serObj.FindProperty ("depthGreenChannel"); depthBlueChannel = serObj.FindProperty ("depthBlueChannel"); serObj.ApplyModifiedProperties (); selectiveCc = serObj.FindProperty ("selectiveCc"); selectiveFromColor = serObj.FindProperty ("selectiveFromColor"); selectiveToColor = serObj.FindProperty ("selectiveToColor"); } void CurveGui ( string name, SerializedProperty animationCurve, Color color) { // @NOTE: EditorGUILayout.CurveField is buggy and flickers, using PropertyField for now //animationCurve.animationCurveValue = EditorGUILayout.CurveField (GUIContent (name), animationCurve.animationCurveValue, color, Rect (0.0f,0.0f,1.0f,1.0f)); EditorGUILayout.PropertyField (animationCurve, new GUIContent (name)); if (GUI.changed) applyCurveChanges = true; } void BeginCurves () { applyCurveChanges = false; } void ApplyCurves () { if (applyCurveChanges) { serObj.ApplyModifiedProperties (); (serObj.targetObject as ColorCorrectionCurves).gameObject.SendMessage ("UpdateTextures"); } } public override void OnInspectorGUI () { serObj.Update (); GUILayout.Label ("Use curves to tweak RGB channel colors", EditorStyles.miniBoldLabel); saturation.floatValue = EditorGUILayout.Slider( "Saturation", saturation.floatValue, 0.0f, 5.0f); EditorGUILayout.PropertyField (mode, new GUIContent ("Mode")); EditorGUILayout.Separator (); BeginCurves (); CurveGui (" Red", redChannel, Color.red); CurveGui (" Green", greenChannel, Color.green); CurveGui (" Blue", blueChannel, Color.blue); EditorGUILayout.Separator (); if (mode.intValue > 0) useDepthCorrection.boolValue = true; else useDepthCorrection.boolValue = false; if (useDepthCorrection.boolValue) { CurveGui (" Red (depth)", depthRedChannel, Color.red); CurveGui (" Green (depth)", depthGreenChannel, Color.green); CurveGui (" Blue (depth)", depthBlueChannel, Color.blue); EditorGUILayout.Separator (); CurveGui (" Blend Curve", zCurveChannel, Color.grey); } EditorGUILayout.Separator (); EditorGUILayout.PropertyField (selectiveCc, new GUIContent ("Selective")); if (selectiveCc.boolValue) { EditorGUILayout.PropertyField (selectiveFromColor, new GUIContent (" Key")); EditorGUILayout.PropertyField (selectiveToColor, new GUIContent (" Target")); } ApplyCurves (); if (!applyCurveChanges) serObj.ApplyModifiedProperties (); } } } ColorCorrectionCurvesEditor UnityStandardAssets.ImageEffects$Assembly-CSharp-Editor-firstpass.dll