Method SetDataForKey
SetDataForKey(XRReferenceImageLibrary, string, byte[])
Associate binary data with a string key.
Declaration
public static void SetDataForKey(this XRReferenceImageLibrary library, string key, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
XRReferenceImageLibrary | library | The XRReferenceImageLibrary being extended. |
string | key | The key which can be used to later retrieve |
byte[] | data | The data to associate with |
Remarks
Providers use this to associate provider-specific data with the library. During Player Build (in an IPreprocessBuildWithReport.OnPreprocessBuild callback), the data store is first cleared. Each enabled provider then has an opportunity to add one or more entries for itself.
Providers can use this to store a serialized version of the image library specific to that provider. Retrieve data with dataStore.
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |