Skip to main content

别名

  • getsynasset

参数

string
必填
经过 separator normalization 和 workspace-boundary checks 后在 workspace 内解析的 path。目标必须存在并且是 regular file;不接受 folders、invalid filenames、DOS device names 和 blocked extensions。

返回值

string
格式为 rbxasset://<hwid>/<workspace-relative-path> 的 String,relative path 使用 forward slashes。

示例

将已存在的 workspace file 复制到 asset folder,并打印返回的 rbxasset path。