开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (14)
标签 (438)
master
2019.3
2020.2
2020.1
2018.4
2017.4
2019.2
2019.1
2018.3
2018.2
2017.2
2018.1
2017.1
2017.3
2019年3月13日f1
202020a10
202010b8
2019年3月12日f1
202020a9
202010b7
2018年4月22日f1
202010b6
202020a8
2019年3月11日f1
2019年3月10日f1
202020a7
2018年4月21日f1
202010b5
2019年3月9日f1
2019年3月8日f1
2017439f1
202010b4
2019年3月7日f1
2018年4月20日f1
master
分支 (14)
标签 (438)
master
2019.3
2020.2
2020.1
2018.4
2017.4
2019.2
2019.1
2018.3
2018.2
2017.2
2018.1
2017.1
2017.3
2019年3月13日f1
202020a10
202010b8
2019年3月12日f1
202020a9
202010b7
2018年4月22日f1
202010b6
202020a8
2019年3月11日f1
2019年3月10日f1
202020a7
2018年4月21日f1
202010b5
2019年3月9日f1
2019年3月8日f1
2017439f1
202010b4
2019年3月7日f1
2018年4月20日f1
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (14)
标签 (438)
master
2019.3
2020.2
2020.1
2018.4
2017.4
2019.2
2019.1
2018.3
2018.2
2017.2
2018.1
2017.1
2017.3
2019年3月13日f1
202020a10
202010b8
2019年3月12日f1
202020a9
202010b7
2018年4月22日f1
202010b6
202020a8
2019年3月11日f1
2019年3月10日f1
202020a7
2018年4月21日f1
202010b5
2019年3月9日f1
2019年3月8日f1
2017439f1
202010b4
2019年3月7日f1
2018年4月20日f1
Attributes.cs 5.21 KB
一键复制 编辑 原始数据 按行查看 历史
Unity Technologies 提交于 2020年04月28日 21:42 +08:00 . Unity 202020a9 C# reference source code
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
using UnityEngine.Scripting;
namespace UnityEngine
{
[RequiredByNativeCode]
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class DisallowMultipleComponent : Attribute {}
// The RequireComponent attribute lets automatically add required component as a dependency.
[RequiredByNativeCode]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class RequireComponent : Attribute
{
//*undocumented*
public Type m_Type0;
//*undocumented*
public Type m_Type1;
//*undocumented*
public Type m_Type2;
// Require a single component
public RequireComponent(Type requiredComponent) { m_Type0 = requiredComponent; }
// Require a two components
public RequireComponent(Type requiredComponent, Type requiredComponent2) { m_Type0 = requiredComponent; m_Type1 = requiredComponent2; }
// Require three components
public RequireComponent(Type requiredComponent, Type requiredComponent2, Type requiredComponent3) { m_Type0 = requiredComponent; m_Type1 = requiredComponent2; m_Type2 = requiredComponent3; }
}
// The AddComponentMenu attribute allows you to place a script anywhere in the "Component" menu, instead of just the "Component->Scripts" menu.
public sealed class AddComponentMenu : Attribute
{
private string m_AddComponentMenu;
private int m_Ordering;
// The script will be placed in the component menu according to /menuName/. /menuName/ is the path to the component
public AddComponentMenu(string menuName) { m_AddComponentMenu = menuName; m_Ordering = 0; }
// same as above, but also specify a custom Ordering.
public AddComponentMenu(string menuName, int order) { m_AddComponentMenu = menuName; m_Ordering = order; }
//* undocumented
public string componentMenu { get {return m_AddComponentMenu; } }
//* undocumented
public int componentOrder { get {return m_Ordering; } }
}
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class CreateAssetMenuAttribute : Attribute
{
public string menuName { get; set; }
public string fileName { get; set; }
public int order { get; set; }
}
// The ContextMenu attribute allows you to add commands to the context menu
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
[RequiredByNativeCode]
public sealed class ContextMenu : Attribute
{
// Creates a context menu item that invokes the non-static method when selected
public ContextMenu(string itemName) : this(itemName, false) {}
public ContextMenu(string itemName, bool isValidateFunction) : this(itemName, isValidateFunction, 1000000) {}
public ContextMenu(string itemName, bool isValidateFunction, int priority)
{
menuItem = itemName;
validate = isValidateFunction;
this.priority = priority;
}
//*undocumented*
public readonly string menuItem;
//*undocumented*
public readonly bool validate;
//*undocumented*
public readonly int priority;
}
// Makes a script execute in edit mode.
[UsedByNativeCode]
public sealed class ExecuteInEditMode : Attribute {}
// Makes a script execute always: when in edit mode, play mode (also for scripts prefab isolation mode in play mode)
[UsedByNativeCode]
public sealed class ExecuteAlways : Attribute {}
// Makes a variable not show up in the inspector but be serialized.
[UsedByNativeCode]
public sealed class HideInInspector : Attribute {}
// Sets a custom help URL for a script.
[UsedByNativeCode]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class HelpURLAttribute : Attribute
{
public HelpURLAttribute(string url) { m_Url = url; m_DispatchingFieldName = ""; m_Dispatcher = false; }
//internal ability to retarget the url on an inside field value's type's HelpURL
internal HelpURLAttribute(string defaultURL, string dispatchingFieldName) { m_Url = defaultURL; m_DispatchingFieldName = dispatchingFieldName; m_Dispatcher = !String.IsNullOrEmpty(dispatchingFieldName); }
public string URL => m_Url;
internal readonly string m_Url;
internal readonly bool m_Dispatcher;
internal readonly string m_DispatchingFieldName;
}
[UsedByNativeCode]
[AttributeUsage(AttributeTargets.Class)]
public class DefaultExecutionOrder : Attribute
{
public DefaultExecutionOrder(int order)
{
m_Order = order;
}
public int order
{
get { return m_Order; }
}
int m_Order;
}
[AttributeUsage(AttributeTargets.Assembly)]
[RequiredByNativeCode]
public class AssemblyIsEditorAssembly : Attribute
{
}
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
[UsedByNativeCode]
public class ExcludeFromPresetAttribute : Attribute {}
}
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

Unity C# reference source code
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chingcho/UnityCsReference.git
git@gitee.com:chingcho/UnityCsReference.git
chingcho
UnityCsReference
UnityCsReference
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /