• 大小: 31.33MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-04
  • 语言: 其他
  • 标签: PostProcessi  Unity  

资源简介

PostProcessing 后期特效工具脚本,支持Unity 2018,亲测可用。

资源截图

代码片段和文件信息

using System;
using System.Linq.expressions;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;

namespace UnityEditor.Rendering.PostProcessing
{
    /// 
    /// Small wrapper on top of  to ease the access of the underlying component
    /// and its serialized fields.
    /// 

    /// The type of the target component to make an editor for
    /// 
    /// 
    /// public class MyMonoBehaviour : MonoBehaviour
    /// {
    ///     public float myProperty = 1.0f;
    /// }
    /// 
    /// [CustomEditor(typeof(MyMonoBehaviour))]
    /// public sealed class MyMonoBehaviourEditor : baseEditor<MyMonoBehaviour>
    /// {
    ///     SerializedProperty m_MyProperty;
    /// 
    ///     void OnEnable()
    ///     {
    ///         m_MyProperty = FindProperty(x => x.myProperty);
    ///     }
    /// 
    ///     public override void OnInspectorGUI()
    ///     {
    ///         EditorGUILayout.PropertyField(m_MyProperty);
    ///     }
    /// }
    /// 

    /// 

    public class baseEditor : Editor
        where T : MonoBehaviour
    {
        /// 
        /// The target component.
        /// 

        protected T m_Target
        {
            get { return (T)target; }
        }

        /// 
        /// 
        /// 

        /// 
        /// 
        /// 
        protected SerializedProperty FindProperty(expression> expr)
        {
            return serializedobject.FindProperty(RuntimeUtilities.GetFieldPath(expr));
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        841  2018-11-13 20:54  PostProcessing\Editor\Attributes\DecoratorAttribute.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\Attributes\DecoratorAttribute.cs.meta

     文件        940  2018-11-13 20:54  PostProcessing\Editor\Attributes\PostProcessEditorAttribute.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\Attributes\PostProcessEditorAttribute.cs.meta

     文件        191  2018-11-13 20:54  PostProcessing\Editor\Attributes.meta

     文件       1727  2018-11-13 20:54  PostProcessing\Editor\baseEditor.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\baseEditor.cs.meta

     文件       1531  2018-11-13 20:54  PostProcessing\Editor\Decorators\AttributeDecorator.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\Decorators\AttributeDecorator.cs.meta

     文件       5263  2018-11-13 20:54  PostProcessing\Editor\Decorators\Decorators.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\Decorators\Decorators.cs.meta

     文件       8402  2018-11-13 20:54  PostProcessing\Editor\Decorators\TrackballDecorator.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\Decorators\TrackballDecorator.cs.meta

     文件        191  2018-11-13 20:54  PostProcessing\Editor\Decorators.meta

     文件      12178  2018-11-13 20:54  PostProcessing\Editor\EffectListEditor.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\EffectListEditor.cs.meta

     文件       3132  2018-11-13 20:54  PostProcessing\Editor\Effects\AmbientOcclusionEditor.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\Effects\AmbientOcclusionEditor.cs.meta

     文件       2309  2018-11-13 20:54  PostProcessing\Editor\Effects\AutoExposureEditor.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\Effects\AutoExposureEditor.cs.meta

     文件       2764  2018-11-13 20:54  PostProcessing\Editor\Effects\BloomEditor.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\Effects\BloomEditor.cs.meta

     文件       1188  2018-11-13 20:54  PostProcessing\Editor\Effects\ChromaticAberrationEditor.cs

     文件        243  2018-11-13 20:54  PostProcessing\Editor\Effects\ChromaticAberrationEditor.cs.meta

     文件      32537  2018-11-13 20:54  PostProcessing\Editor\Effects\ColorGradingEditor.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\Effects\ColorGradingEditor.cs.meta

     文件       1725  2018-11-13 20:54  PostProcessing\Editor\Effects\DefaultPostProcessEffectEditor.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\Effects\DefaultPostProcessEffectEditor.cs.meta

     文件       1282  2018-11-13 20:54  PostProcessing\Editor\Effects\DepthOfFieldEditor.cs

     文件        262  2018-11-13 20:54  PostProcessing\Editor\Effects\DepthOfFieldEditor.cs.meta

............此处省略552个文件信息

评论

共有 条评论