Skip to content

格式

typescript
Path.MatchExtension(path, ext, ignore_case)

所属类: Path

描述

检查指定路径是否为当前扩展名。

参数

参数名类型描述
pathstring指定路径
extstring扩展名
ignore_caseboolean?是否忽略大小写

返回值

类型描述
boolean是否符合条件

代码示例

typescript
let result = Path.MatchExtension("Assets/path","path");
Debug.Log(result);