EditorGUIUtility.LoadRequired 加载所需资源

static function LoadRequired (path : string) : Object

Description描述

Load a built-in resource that has to be there.

加载一个已有的内置资源。

This function will look in Assets/Editor Default Resources/whatever for the resource.

这个函数将在Assets/Editor查找默认资源或任何资源。

var handleMaterial : Material = EditorGUIUtility.Load("HandleMaterial");
Page last updated: 2011-7-15