meta data for this page
📚 差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
| scripting:native:misc [2025/08/27 02:17] – bibiboxs | scripting:native:misc [2025/08/28 00:46] (当前版本) – bibiboxs | ||
|---|---|---|---|
| 行 156: | 行 156: | ||
| ```javascript | ```javascript | ||
| function SnapVector2( input: Vector, snapValue: float ): Vector2 | function SnapVector2( input: Vector, snapValue: float ): Vector2 | ||
| + | ``` | ||
| + | |||
| + | |||
| + | |||
| + | ### Misc.SnapVectorAxis() | ||
| + | |||
| + | > 获取按比例**对齐**后的`Vector`坐标(按轴分配)。 | ||
| + | |||
| + | ```javascript | ||
| + | function SnapVectorAxis( input: Vector, snapValue: Vector ): Vector | ||
| + | ``` | ||
| + | |||
| + | |||
| + | |||
| + | ### Misc.SnapVector2Axis() | ||
| + | |||
| + | > 获取按比例**对齐**后的`Vector2`坐标(按轴分配)。 | ||
| + | |||
| + | ```javascript | ||
| + | function SnapVector2Axis( input: Vector2, snapValue: Vector2 ): Vector2 | ||
| ``` | ``` | ||
| 行 248: | 行 268: | ||
| function GreaterDistance( pos: Vector, pos2: Vector, distance: float ): bool | function GreaterDistance( pos: Vector, pos2: Vector, distance: float ): bool | ||
| ``` | ``` | ||
| + | |||
| + | |||
| + | |||
| + | ### Misc.IsUBBText() | ||
| + | |||
| + | > 检查文本是否包含**UBB\HTML**格式。 | ||
| + | > | ||
| + | > 注意:此方法只会检查受引擎支持的标签(例如:`img | color | size`等,不会检查自定义标签)。 | ||
| + | |||
| + | ```javascript | ||
| + | function IsUBBText( text: string ): bool | ||
| + | ``` | ||
| + | |||