a#%5.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ÆŲMEooó¢ĪLSĪ>1=Assets/Standard Assets/Editor/ImageEffects/SunShaftsEditor.csSunShaftsEditor¢using System; using UnityEditor; using UnityEngine; namespace UnityStandardAssets.ImageEffects { [CustomEditor (typeof(SunShafts))] class SunShaftsEditor : Editor { SerializedObject serObj; SerializedProperty sunTransform; SerializedProperty radialBlurIterations; SerializedProperty sunColor; SerializedProperty sunThreshold; SerializedProperty sunShaftBlurRadius; SerializedProperty sunShaftIntensity; SerializedProperty useDepthTexture; SerializedProperty resolution; SerializedProperty screenBlendMode; SerializedProperty maxRadius; void OnEnable () { serObj = new SerializedObject (target); screenBlendMode = serObj.FindProperty("screenBlendMode"); sunTransform = serObj.FindProperty("sunTransform"); sunColor = serObj.FindProperty("sunColor"); sunThreshold = serObj.FindProperty("sunThreshold"); sunShaftBlurRadius = serObj.FindProperty("sunShaftBlurRadius"); radialBlurIterations = serObj.FindProperty("radialBlurIterations"); sunShaftIntensity = serObj.FindProperty("sunShaftIntensity"); resolution = serObj.FindProperty("resolution"); maxRadius = serObj.FindProperty("maxRadius"); useDepthTexture = serObj.FindProperty("useDepthTexture"); } public override void OnInspectorGUI () { serObj.Update (); EditorGUILayout.BeginHorizontal(); EditorGUILayout.PropertyField (useDepthTexture, new GUIContent ("Rely on Z Buffer?")); if ((target as SunShafts).GetComponent()) GUILayout.Label("Current camera mode: "+ (target as SunShafts).GetComponent().depthTextureMode, EditorStyles.miniBoldLabel); EditorGUILayout.EndHorizontal(); // depth buffer need /* bool newVal = useDepthTexture.boolValue; if (newVal != oldVal) { if (newVal) (target as SunShafts).camera.depthTextureMode |= DepthTextureMode.Depth; else (target as SunShafts).camera.depthTextureMode &= ~DepthTextureMode.Depth; } */ EditorGUILayout.PropertyField (resolution, new GUIContent("Resolution")); EditorGUILayout.PropertyField (screenBlendMode, new GUIContent("Blend mode")); EditorGUILayout.Separator (); EditorGUILayout.BeginHorizontal(); EditorGUILayout.PropertyField (sunTransform, new GUIContent("Shafts caster", "Chose a transform that acts as a root point for the produced sun shafts")); if ((target as SunShafts).sunTransform && (target as SunShafts).GetComponent()) { if (GUILayout.Button("Center on " + (target as SunShafts).GetComponent().name)) { if (EditorUtility.DisplayDialog ("Move sun shafts source?", "The SunShafts caster named "+ (target as SunShafts).sunTransform.name +"\n will be centered along "+(target as SunShafts).GetComponent().name+". Are you sure? ", "Please do", "Don't")) { Ray ray = (target as SunShafts).GetComponent().ViewportPointToRay(new Vector3(0.5f,0.5f,0)); (target as SunShafts).sunTransform.position = ray.origin + ray.direction * 500.0f; (target as SunShafts).sunTransform.LookAt ((target as SunShafts).transform); } } } EditorGUILayout.EndHorizontal(); EditorGUILayout.Separator (); EditorGUILayout.PropertyField (sunThreshold, new GUIContent ("Threshold color")); EditorGUILayout.PropertyField (sunColor, new GUIContent ("Shafts color")); maxRadius.floatValue = 1.0f - EditorGUILayout.Slider ("Distance falloff", 1.0f - maxRadius.floatValue, 0.1f, 1.0f); EditorGUILayout.Separator (); sunShaftBlurRadius.floatValue = EditorGUILayout.Slider ("Blur size", sunShaftBlurRadius.floatValue, 1.0f, 10.0f); radialBlurIterations.intValue = EditorGUILayout.IntSlider ("Blur iterations", radialBlurIterations.intValue, 1, 3); EditorGUILayout.Separator (); EditorGUILayout.PropertyField (sunShaftIntensity, new GUIContent("Intensity")); serObj.ApplyModifiedProperties(); } } } SunShaftsEditor UnityStandardAssets.ImageEffects$Assembly-CSharp-Editor-firstpass.dll