Version: Unity 6.4 (6000.4)
LanguageEnglish
  • C#

DiagnosticParams.RegisterParameter

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 RegisterParameter(string paramName, string userFriendlyName, string tooltip, int defaultValue);

Parameters

Parameter Description
paramName Parameter name.
userFriendlyName A user friendly name to show in the Project Settings.
tooltip Text to show on a tooltip in the Project Settings.
defaultValue The default value this parameter will have, unless it has already been registered.

Description

Register a parameter by declaring its name and default value. Parameters are registered on the "default" platform, so are available for retrieval on every target platform.


Declaration

public void RegisterParameter(string paramName, string userFriendlyName, string tooltip, int defaultValue, int minValue, int maxValue);

Parameters

Parameter Description
paramName Parameter name.
userFriendlyName A user friendly name to show in the Project Settings.
tooltip Text to show on a tooltip in the Project Settings.
defaultValue The default value this parameter will have, unless it has already been registered.
minValue The minimum valid value this parameter may have.
maxValue The maximum valid value this parameter may have.

Description

Register a parameter by declaring its name and default value. Parameters are registered on the "default" platform, so are available for retrieval on every target platform.