大约有 259 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0049 秒)
...onkey2.png"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() { //初始化引擎 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载多张图片,在图片资源加载成功后,通过...
来源: Laya_社区 发布时间: 20180226
...上导致拿不到正确位置的Texture? package { import laya.display.Sprite; import laya.display.Stage; import laya.events.Event; import laya.resource.HTMLCanvas; import laya.resource.Texture; import rain.core.StageReferance; public class Main { private var _view:Sprite; public function Main() ...
来源: Laya_社区 发布时间: 20180319
... = 1; let txArray = ; for (let i = 0; i <20; ++i) { let list = new Laya.Sprite(); list.width = 600 ; list.height = 155; list.loadImage('xxx.png'); //此处无论是这样给 list.on(Laya.Event.CLICK, this, () => { console.log(413132131) }) //还是在handler中去渲染,都会滚动不了 tx...
来源: Laya_社区 发布时间: 20190711
...区域为黑色,其它机型都是正常的。 this.guideContainer = new Sprite(); this.guideContainer.cacheAs = "bitmap"; Utils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea: Laya.Sprite = new Laya....
来源: Laya_社区 发布时间: 20171222
...能够获取“鼠标是否处于按下状态”? 关于遍历产生的sprite的点击事件,急,大神帮看哈 救命!canvas定位后 点击区域偏移,求大大们解答 ui list 里面的元素不能点击两次 如何设置Sprite的宽高和点击区域? 求指点3d射线碰撞和UI...
来源: Laya_社区 发布时间: 20161122
... break; } } private _checkInput(input: Laya.TextInput) { let sp_icon: Laya.Sprite = new Laya.Sprite(); // 判定是否有两个子对象 if (input.numChildren == 2) { input.removeChildAt(1); } // 输入框为空则插入错误图标 if (input.text.trim().length == 0) { input.changeText(""); sp_icon....
来源: Laya_社区 发布时间: 20200410
...不见的,但是没有生效 Laya.init(640, 1136); let testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = t...
来源: Laya_社区 发布时间: 20200421
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 微信小游戏:HTMLDivElement的使用 关于近期iOS提交,因违反苹果3.1.1导致APP上架被拒的说...
来源: Laya_社区 发布时间: 20200921
...regClass() export class Script1 extends Laya.Script { declare owner : Laya.Sprite3D; } //TestCustomEditor.ts @IEditorEnv.customEditor(Script1) export class TestCustomEditor extends IEditorEnv.CustomEditor { declare owner: Laya.Sprite3D; onSceneGUI(): void { IEditorEnv.Handles.drawHemiSphere(this.own...
来源: Laya3.0_文档 发布时间: 20251010
...Error processing launch: Error Could not attach to main target 如何设置Sprite的宽高和点击区域? 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. Laya2.12.0项目出现卡顿现象(必现) 关于适配采用showAll后留白部分的颜色问题 版本不匹配...
来源: Laya_社区 发布时间: 20251021