Version: 2023.2
LanguageEnglish
  • C#

AndroidProjectFilesModifierContext.SetData

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

Declaration

public void SetData(string key, string value);

Parameters

key Data key.
value Data value as string.

Description

Sets data for the OnModifyAndroidProjectFiles callback.

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.


Declaration

public void SetData(string key, T value);

Parameters

key Data key.
value Serializable object.

Description

Sets data as serializable object.

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.