大约有 2,538 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0078 秒)
Laya_社区(1915) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...All Classes | Index | Frames No Frames ButtonProperties | Methods | Events Packagelaya.uiClasspublic class ButtonInheritanceButton UIComponent Sprite Node EventDispatcher ObjectImplements ISelectSubclasses CheckBox, Radio Button 组件用来表示常用的多态按钮。 Button 组件可显...
来源: Laya2.0_api 发布时间: 20190513
...niSound._audioCache[this.readyUrl]) { this.event(/*laya.events.Event.COMPLETE*/"complete"); return; } console.log(url); if (MiniAdpter.autoCacheFile && Mini...
来源: Laya_社区 发布时间: 20180503
...;this.txt.color = "#ffffff";Laya.stage.addChild(this.txt);this.txt.on(Laya.Event.MOUSE_DOWN,this,startScrollText);}/*开始滚动文本*/function startScrollText(){this.prevX = this.txt.mouseX;this.prevY = this.txt.mouseY;Laya.stage.on(Laya.Event.MOUSE_MOVE,this,scrollText);Laya.stage.on(Laya.Event....
来源: Laya_社区 发布时间: 20180125
...LE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBox(); this.eventListener(); } createBox() { const width = 300, height = 20; const posx = Laya.Browser.width / 2, posy = Laya.Browser.height / 2; let box = this.box = new Laya.Sprite(); box.size(width + height * 2, width + height * 2); b...
来源: Laya2.0_示例 发布时间: 20251209
...{ import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.events.Event; import laya.webgl.WebGL; public class DragonDemo { private var mFactory:Templet; private var mArmature:Skeleton; private var index:int;//帧频 private var time:Number; public function DragonDemo() { Laya.init(8...
来源: Laya_社区 发布时间: 20170509
... onAwake() { this.createJoystick(); this.bindEvents(); // 监听全局事件 Laya.stage.on("DIALOG_SHOW", this, this.disable); Laya.stage.on("DIALOG_HIDE", this, this.enable); } onDestroy() { // ...
来源: Laya_社区 发布时间: 20251125
...PUMemory _setCreateURL _setGPUMemory calculateBounds clone cloneTo destroy event getBoneIndices getBoneWeights getColors getIndices getNormals getPositions getSubMesh getTangents getUVs getVertexDeclaration getVertices hasListener isCreateFromURL markAsUnreadbale off offAll offAllCaller on once setB...
来源: Laya3.0_api 发布时间: 20231115
...效,单点的情况下会获得三个触摸点信息Laya.stage.on(Laya.Event.MOUSE_DOWN, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag mouse down", st...
来源: Laya_社区 发布时间: 20230823
...题。最好可以附上demo 2018-10-25 0 1 分享 微博 QZONE 微信 S_eVent 赞同来自: 目前回退回1.7.20版本可以解决此问题,1.7.21和1.7.22均存在此问题,未升级到正式版的1.7.21beta版本不会出现此问题 2018-10-26 0 1 分享 微博 QZONE 微信 为什么被折...
来源: Laya_社区 发布时间: 20181025
...er = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Event = Laya.Event; var compassImgPath = "../../res/inputDevice/kd.png"; var compassImg; var degreesText; var directionIndicator; var firstTime = true; (function() { Laya.init(700, 1024, WebGL); Laya.stage.scaleMode = Stage.S...
来源: Laya_示例 发布时间: 20251209