Created
October 19, 2020 15:49
-
-
Save zsoi/cc91e1fba22cf4e82f5420e9e5aeceb3 to your computer and use it in GitHub Desktop.
Unity's addressables project config API is private. This hack provides a public API for some parts of the ProjectConfigData and can be easily extended.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace UnityEditor.AddressableAssets.Settings | |
{ | |
/// <summary> | |
/// Adapter to provide a public API into <seealso cref="ProjectConfigData"/> internals. | |
/// </summary> | |
public static class ProjectConfigDataAdapter | |
{ | |
public static bool generateBuildLayout | |
{ | |
get => ProjectConfigData.generateBuildLayout; | |
set => ProjectConfigData.generateBuildLayout = value; | |
} | |
public static bool ignoreUnsupportedFilesInBuild | |
{ | |
get => ProjectConfigData.ignoreUnsupportedFilesInBuild; | |
set => ProjectConfigData.ignoreUnsupportedFilesInBuild = value; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"reference": "GUID:69448af7b92c7f342b298e06a37122aa" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment