ドキュメント

Unity Engine

Unity Engine

TryGetDefaultValue<T>(out T)

Retrieves the default value of the variable.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

TryGetDefaultValue<T>(T)

bool TryGetDefaultValue<T>(out T value)

Parameters

value

T
The retrieved default value, if available.

Returns

Type

Description

bool
true
if a default value exists and is of the correct type; otherwise,
false
.

Remarks

Use this method to retrieve the variable’s default value in a type-safe way.