기술 자료

Unity Engine

Unity Engine

GetPropertyOptionalString

Searches for property and assigns it's value to given variable.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

GetPropertyOptionalString(string, string, BuildTargetGroup)

Searches for property and assigns it's value to given variable.
경고
Deprecated. Use explicit API instead.
public static bool GetPropertyOptionalString(string name, ref string value, BuildTargetGroup target)

Parameters

name

Name of the property.

value

Variable, to which to store the value of the property, if set.

An optional build target group, to which the property applies.

Returns

Type

Description

boolTrue if property was set and it's value assigned to given variable.

Remarks

Property is not required to exist. If it doesn't exist, value variable will not be changed and this method will return false.

GetPropertyOptionalString(string, string)

Searches for property and assigns it's value to given variable.
경고
Deprecated. Use explicit API instead.
public static bool GetPropertyOptionalString(string name, ref string value)

Parameters

name

Name of the property.

value

Variable, to which to store the value of the property, if set.

Returns

Type

Description

boolTrue if property was set and it's value assigned to given variable.

Remarks

Property is not required to exist. If it doesn't exist, value variable will not be changed and this method will return false.