Resource
Creates a file resource with the specified name, without a source file path.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEditor.iOS
- Assembly: UnityEditor.Apple.Extensions.Common
Resource(string)
Creates a file resource with the specified name, without a source file path.
public Resource(string name)
Parameters
Asset catalog entry name for this resource.
Remarks
Use this constructor when you intend to supply device-specific files using Resource.BindVariant. Don't use this constructor if the resource has a single source file; use the two-parameter constructor instead.
Resource(string, string)
Creates a file resource with the specified name and source file path.
public Resource(string name, string path)
Parameters
Remarks
Unity copies the file at into the catalog under . Don't call Resource.BindVariant on a resource created with this constructor; doing so throws an exception.
pathUnityData.xcassetsname