format
typescript
Path.MatchExtension(path, ext, ignore_case)class: Path
description
Check if the specified path has the current extension.
parameter
| param_name | type | description |
|---|---|---|
| path | string | The specified path. |
| ext | string | The extension. |
| ignore_case | boolean? | Whether to ignore case. |
return
| type | description |
|---|---|
boolean | Whether it meets the condition. |
code example
typescript
let result = Path.MatchExtension("Assets/path","path");
Debug.Log(result);