EditorGUIUtility.Load 加载


static function Load (path : string) : Object

Description描述

Load a built-in resource

加载一个内置资源。

This function will look in Assets/Editor Default Resources/ + path for the resource.  If not there, it will try the built-in editor resources by name.

这个函数将在Assets/Editor查找默认资源或使用路径。如果没有,它将通过名称查找内置编辑器资源。

var handleMaterial : Material = EditorGUIUtility.Load("HandleMaterial.mat");


,