| Parameter | Description |
|---|---|
| name | Asset catalog entry name for this resource. |
Creates a file resource with the specified name, without a source file path.
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.
| Parameter | Description |
|---|---|
| name | Asset catalog entry name for this resource. |
| path | Path to the source file to include in the asset catalog. |
Creates a file resource with the specified name and source file path.
Unity copies the file at path into the UnityData.xcassets catalog under name. Don't call Resource.BindVariant on a resource created with this constructor; doing so throws an exception.