Version: Unity 6.5 (6000.5)
LanguageEnglish
  • C#

Resource

class in UnityEditor.iOS

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Represents a file resource to include in the iOS Xcode asset catalog, with optional on-demand resource tags and device-specific variants.

A Resource maps a named entry in the Xcode asset catalog to one or more source files on disk. Use the two-parameter constructor when the resource has a single source file. Use the one-parameter constructor together with Resource.BindVariant when you need different files for different device configurations. Use Resource.AddOnDemandResourceTags to mark the resource for on-demand delivery. All methods return the same instance, so calls can be chained.

Additional resources: BuildPipeline, iOS.iOSDeviceRequirement.

Constructors

Constructor Description
ResourceCreates a file resource with the specified name, without a source file path.

Public Methods

Method Description
AddOnDemandResourceTagsAssigns one or more on-demand resource tags to this resource and returns the same instance for method chaining. Duplicate tags are ignored.
BindVariantAdds a file variant selected by device requirements and returns the same instance for method chaining.