大约有 284 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0074 秒)
...prite,而Label继承于UIComponent再往上才是Sprite,从原理上,路径越短,性能自然越好。所以,比较简单的文本,当Text可以满足时,原则上优先使用Text,而Label由于属性非常丰富,适用于相对布局等等Text无法满足的应用场景。 对于...
来源: Laya3.0_文档 发布时间: 20251010
...— 是否使用图集资源 atlasPath:String (default = null) — 图集路径,默认使用与swf同名的图集 play()method public function play(index:int = 0, loop:Boolean = true):void 播放动画。 Parameters index:int (default = 0) — 帧索引。 loop:Boolean (default = true)playTo...
来源: Laya2.0_api 发布时间: 20190513
...de onGetAtlasDanImgUrl(url:*):String[static] 获取图集中单张图片路径信息 MoreGame onGetIconImgSkinUrl(resUrl:String):String[static] 获取Icon图片的绝对地址 MoreGame onGetImgSkinUrl(resUrl:String):String[static] 获取指定图片的绝对地址 MoreGame onOpened(param:*...
来源: Laya2.0_api 发布时间: 20190513
...布脚本(脚本基本照抄自 layaair2-cmd,只修改了一些脚本路径的计算) 在项目根目录下创建目录 dev-tools a)、创建并编写脚本 tools-compile.js#!/usr/bin/env node const program = require('commander'); const { fork } = require('child_process'); const path = requ...
来源: Laya_社区 发布时间: 20201223
...放在工程目录的bin/libs/下 d.打开bin/index.html,添加script指定路径 <!-- pemolo --> <script type="text/javascript" src="libs/PomeloClient.js"></script> 这样就可以了,便于使用和习惯,个人封装了pomloClient如: /** 基于pomelo网络握手通讯*/...
来源: Laya_社区 发布时间: 20161109
...(): void { this.sprite.loadImage("atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y = Laya.stage.height/2; this.sprite.size(51...
来源: Laya3.0_文档 发布时间: 20251010
...— 是否使用图集资源 atlasPath:String (default = null) — 图集路径,默认使用与swf同名的图集 play()method public function play(index:int = 0, loop:Boolean = true):void 播放动画。 Parameters index:int (default = 0) — 帧索引。 loop:Boolean (default = true)playTo...
来源: laya_api 发布时间: 20170929
...建一个script标签。 `script.src = "demo1.js";`设置要加载的js的路径。 `script.onload = ......`和`script.onerror =....`分别是加载完成和加载失败的回调函数。 `Laya.Browser.document.body.appendChild(script);`把创建的script标签添加到页面。 `var client = new La...
来源: Laya2.0_文档 发布时间: 20210714
...体的直线运动速度,如果物体呈曲线运动,就是沿着曲线路径切线方向的单位时间即时速度。 线速度是一个矢量值,它是描述作曲线运动的质点运动快慢和方向的物理量,既有大小也有方向。 在LayaAirIDE里,linearVelocity属性值,...
来源: Laya2.0_文档 发布时间: 20210714
...建一个script标签。 `script.src = "demo1.js";`设置要加载的js的路径。 `script.onload = ......`和`script.onerror =....`分别是加载完成和加载失败的回调函数。 `Laya.Browser.document.body.appendChild(script);`把创建的script标签添加到页面。 `var client:any = ne...
来源: Laya2.0_文档 发布时间: 20210715