ドキュメント

Unity Engine

Download Unity

Unity Engine

Validate

Checks whether the detail prototype is valid and the Terrain can accept it.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule

Validate()

Checks whether the detail prototype is valid and the Terrain can accept it.
public bool Validate()

Returns

Type

Description

boolTrue if the detail prototype is valid and the Terrain can accept it. Otherwise, false.

Validate(string)

Checks whether the detail prototype is valid and the Terrain can accept it.
public bool Validate(out string errorMessage)

Parameters

errorMessage

Returns a message that indicates the cause of failed validation.

Returns

Type

Description

boolTrue if the detail prototype is valid and the Terrain can accept it. Otherwise, false.