Validate
Checks whether the detail prototype is valid and the Terrain can accept it.
阅读时间1 分钟最后更新于 21 天前
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 |
|---|---|
| bool | True 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
Returns a message that indicates the cause of failed validation.
Returns
Type | Description |
|---|---|
| bool | True if the detail prototype is valid and the Terrain can accept it. Otherwise, false. |