Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetData

Sets data for the OnModifyAndroidProjectFiles callback.
Read time 1 minuteLast updated 5 days ago

Definition

SetData(string, string)

Sets data for the OnModifyAndroidProjectFiles callback.
public void SetData(string key, string value)

Parameters

Data key.

value

Data value as string.

Remarks

This method is used to set data from the Unity Editor and it is passed to the
OnModifyAndroidProjectFiles
callback.
If data with the same key already exists, Unity throws an error.

SetData<T>(string, T)

Sets data as serializable object.
public void SetData<T>(string key, T value)

Parameters

Data key.

value

T
Serializable object.

Remarks

This method is used to set data from the Unity Editor and it is passed to the
OnModifyAndroidProjectFiles
callback.
If data with the same key already exists, Unity throws an error.