ProtectedconstructorStatic ReadonlyDefaultDefault set of flags used for resource loading.
If the resource is streaming and the load is synchronous, the system will attempt to perform the web request while blocking the executing thread. For most cases, the resource load should be done with DefaultPreview or DefaultStreaming, to avoid blocking the executing thread.
Static ReadonlyDefaultDefault set of flags used for streaming resource loading for preview data only.
Static ReadonlyDefaultDefault set of flags used for streaming resource loading.
Static ReadonlyKeepIf enabled the resource system will keep an internal reference to the resource so it doesn't get destroyed when it goes out of scope. You can call Resources::release() to release the internal reference. Each call to load will create a new internal reference and therefore must be followed by the same number of release calls. If dependencies are being loaded, they will not have internal references created regardless of this parameter.
Static ReadonlyKeepDetermines if the loaded resource keeps original data loaded. Sometime resources will process loaded data and discard the original (e.g. uncompressing audio on load). This flag can prevent the resource from discarding the original data. The original data might be required for saving the resource (via Resources::save), but will use up extra memory. Normally you want to keep this enabled if you plan on saving the resource to disk.
Static ReadonlyLoadIf enabled all resources referenced by the root resource will be loaded as well.
Static ReadonlyPreviewIf the resource supports streaming, only load the preview dependencies. Do not load other dependencies. Keep internal reference.
If set together with Streaming, streaming will take place and the flag becomes useless.
Static ReadonlyStreamingIf resource supports streaming, only the low quality version of the resource will be loaded initially, and full resource will be streamed in as the data becomes available.
StaticaddAdds the flag bits to the enum value.
StaticcombineTakes an array of enum values and combines them as a single enum flag value. This assumes that the
target enum is a flag enum that can have their values combined using bitwise operators.
The array of values to be combined using bitwise-or operator.
The combined enum value.
StaticgetStaticgetStaticgetStaticgetStaticgetGets the name for the enumeration value that matches the specified enumValue.
The enumeration value.
The enumeration value or undefined if not found.
StaticgetStaticgetGets the enumeration value at the specified index.
The index.
The enumeration value or undefined if not found.
StaticgetGets the enumeration values
The enumeration values.
StatichasDetermines if the enum value has the flags set.
StatichasDetermines if the enum bits were changed from previousValue to currentValue.
StaticiterateStaticiterateIterates the enumeration values
The enumeration values.
StaticremoveRemoves the flag bits from the enum value.
StaticsplitTakes a single enum value and splits it into separated flag values set on the value. This
assumes that the target enum is a flag enum that can have their values combined using bitwise operators.
The enum value to have it's value split using bitwise-and operator.
An array of each "bit flag" set in the enum.
Flags that can be used to control resource loading.