您的位置:首页 > 移动开发 > Unity3D

unity 打开asset自定义处理

2015-11-13 11:23 357 查看


OnOpenAssetAttribute

Namespace: UnityEditor.Callbacks

/

Inherits from: CallbackOrderAttribute


Description

Callback attribute for opening an asset in Unity (e.g the callback is fired when double clicking an asset in the Project Browser).

Adding this attribute to a static method will make the method be called when Unity is about to open an asset. The method should have the following signature:
static bool OnOpenAsset(int instanceID, int line)
 

Return true if you handled the opening of the asset or false if an external tool should open it.


Inherited members

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: