• 大小: 6.08MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-23
  • 语言: C#
  • 标签: unity  源代码  编辑器  

资源简介

unity编辑器源代码,c#的,有兴趣的可以阅读下源代码了解内部实现

资源截图

代码片段和文件信息

// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License

using scm=System.ComponentModel;
using uei=UnityEngine.Internal;
using RequiredByNativeCodeAttribute=UnityEngine.scripting.RequiredByNativeCodeAttribute;
using UsedByNativeCodeAttribute=UnityEngine.scripting.UsedByNativeCodeAttribute;


using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Collections;
using UnityEngine.Bindings;
using UnityEngine.Playables;

namespace UnityEngine
{


internal enum AnimationEventSource
{
    NoSource = 0
    Legacy = 1
    Animator = 2
}

[System.Serializable]
[StructLayout(LayoutKind.Sequential)]
[RequiredByNativeCode]
public sealed partial class AnimationEvent
{
    
            internal float                  m_Time;
            internal string                 m_FunctionName;
            internal string                 m_StringParameter;
            internal object                 m_objectReferenceParameter;
            internal float                  m_FloatParameter;
            internal int                    m_IntParameter;
    
            internal int                    m_MessageOptions;
            internal AnimationEventSource   m_Source;
            internal AnimationState         m_StateSender;
            internal AnimatorStateInfo      m_AnimatorStateInfo;
            internal AnimatorClipInfo       m_AnimatorClipInfo;
    
    
    public AnimationEvent()
        {
            m_Time = 0.0f;
            m_FunctionName = ““;
            m_StringParameter = ““;
            m_objectReferenceParameter = null;
            m_FloatParameter = 0.0f;
            m_IntParameter = 0;
            m_MessageOptions = 0;
            m_Source = AnimationEventSource.NoSource;
            m_StateSender = null;
        }
    
    
    [System.Obsolete (“Use stringParameter instead“)]
    public string data { get { return m_StringParameter; }  set { m_StringParameter = value; } }
    
    
    public string stringParameter { get { return m_StringParameter; } set { m_StringParameter = value; } }
    
    
    public float floatParameter { get { return m_FloatParameter; } set { m_FloatParameter = value; } }
    
    
    public int intParameter { get { return m_IntParameter; } set { m_IntParameter = value; } }
    
    
    public object objectReferenceParameter { get { return m_objectReferenceParameter; } set { m_objectReferenceParameter = value; } }
    
    
    public string functionName { get { return m_FunctionName; } set { m_FunctionName = value; } }
    
    
    public float time { get { return m_Time; } set { m_Time = value; } }
    
    
    public SendMessageOptions messageOptions { get { return (SendMessageOptions)m_MessageOptions; } set { m_MessageOptions = (int)value; } }
    
    
    public bool isFiredByLegacy  { get { return m_Source == AnimationEventSource.Legacy; } }
    public bool isFiredByA

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-07-03 17:30  UnityCsReference-master\
     目录           0  2019-07-03 17:30  UnityCsReference-master\Editor\
     目录           0  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\
     目录           0  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\
     目录           0  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\Common\
     目录           0  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\Common\scriptBindings\
     文件        1444  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\Common\scriptBindings\SpriteEditorExtension.bindings.cs
     文件        6902  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\Common\SpriteEditorUtility.cs
     文件       10191  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\Common\TexturePlatformSettingsController.cs
     文件        1160  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\Common\TexturePlatformSettingsFormatHelper.cs
     文件        8488  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\Common\TexturePlatformSettingsView.cs
     目录           0  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\Interface\
     文件        2220  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\Interface\IEvent.cs
     文件        2165  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\Interface\ITexturePlatformSetting.cs
     目录           0  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\SpriteAtlas\
     文件        5329  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\SpriteAtlas\EditorSpriteAtlas.bindings.cs
     文件       30885  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\2D\SpriteAtlas\SpriteAtlasInspector.cs
     目录           0  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Accessibility\
     文件        1558  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Accessibility\UserAccessibilitySettings.cs
     文件        6462  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\ActiveEditorTracker.bindings.cs
     目录           0  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Animation\
     文件        1315  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Animation\AnimationClipSettings.bindings.cs
     文件        2015  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Animation\AnimationClipStats.bindings.cs
     文件        7856  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Animation\AnimationMode.bindings.cs
     文件       19274  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Animation\AnimationUtility.bindings.cs
     目录           0  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Animation\AnimationWindow\
     文件        3653  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Animation\AnimationWindow\AddCurvesPopup.cs
     文件        1760  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Animation\AnimationWindow\AddCurvesPopupHierarchy.cs
     文件       10708  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Animation\AnimationWindow\AddCurvesPopupHierarchyDataSource.cs
     文件        5310  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Animation\AnimationWindow\AddCurvesPopupHierarchyGUI.cs
     文件       55395  2019-07-03 17:30  UnityCsReference-master\Editor\Mono\Animation\AnimationWindow\AnimEditor.cs
............此处省略3214个文件信息

评论

共有 条评论