Version: 2019.1 (switch to 2018.3 or 2017.4)
LanguageEnglish
  • C#

UnityAPICompatibilityVersionAttribute Constructor

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

public UnityAPICompatibilityVersionAttribute(string version, bool checkOnlyUnityVersion);

Parameters

versionUnity version that this assembly is compatible with.
checkOnlyUnityVersionMust be set to true.

Description

Initializes a new instance of UnityAPICompatibilityVersionAttribute.

Instructs APIUpdater to only check Unity version when deciding whether assemblies should be inspected for obsolete API usages ignoring any other sources of update configurations. This overload is meant to be used only during development cycle in scenarios in which game code is built outside unity and imported as assemblies to avoid AssemblyUpdater checking the assembly. As an alternative you should consider passing disable-assembly-updater as a command line argument (see Unity manual for more details).


Obsolete public UnityAPICompatibilityVersionAttribute(string version);

Parameters

versionUnity version that this assembly is compatible with.

Description

Initializes a new instance of UnityAPICompatibilityVersionAttribute. This overload has been deprecated.


public UnityAPICompatibilityVersionAttribute(string version, string[] configurationAssembliesHashes);

Parameters

versionUnity version that this assembly is compatible with.
configurationAssembliesHashesComma separated list of hash of the contents of all referenced assemblies (by the assembly the attribute is applied to) that contains updater configurations in the form "assemblyname:hash,assemblyname:hash...".

Description

Initializes a new instance of UnityAPICompatibilityVersionAttribute. This constructor is used by internal tooling.

Did you find this page useful? Please give it a rating: