大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0151 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...的中心点 2、然后针对你的显示对象进行rotate旋转 private function createTexts():void { var sp:Sprite=new Sprite(); Laya.stage.addChild(sp); sp.graphics.drawLine(0,0,200,200,'#FF00000'); sp.pivot(0,0); Laya.timer.frameLoop(1,this,onTimer,[sp]); } private function onTimer(sp:Sprite):v...
来源: Laya_社区 发布时间: 20170424
看一下这是什么问题,运行报错 var MPanel1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下 附件 : --> 2018-02-06 添加评论 免费...
来源: Laya_社区 发布时间: 20180206
...tils.Browser; import laya.webgl.WebGL; public class Text_Overflow { public function Text_Overflow() { // 不支持WebGL时自动切换至Canvas Laya.init(600, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya...
来源: Laya2.0_示例 发布时间: 20260303
...点击事件 Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick); private function sceneClick():void { trace("scene clicked"); } 3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void { e.stopPropagation(); trace("button clicke...
来源: Laya_社区 发布时间: 20180917
...xture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //平面添加物理碰撞体组...
来源: Laya2.0_文档 发布时间: 20210714
...用LayaAir引擎绘制矢量曲线,示例代码如下: ```javascript (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var WebGL = Laya.WebGL; var sp; (function() { //初始化舞台,不支持WebGL...
来源: Laya2.0_文档 发布时间: 20210715
...n 此 EventDispatcher 对象。 */ on(type: string, caller: any, listener: Function, args: any[] = null) 用于向事件派发器注册指定类型的事件侦听器,使事件侦听器能够接收事件通知。当侦听到事件后,会调用作用域 caller 的回调方法 listener。 上述2.2...
来源: Laya3.0_文档 发布时间: 20251010
... protected var channel:SoundChannel; protected var sound:Sound; protected function wakeUp():void { /*强迫至少保持8FPS sound = new Sound(new URLRequest("")); sound.play(); sound.close(); */ //*/强迫保持原本设定的FPS try { sound = new Sound(); sound.addEventListener(SampleDataEvent.SAMP...
来源: Laya_社区 发布时间: 20180627
....addChild(new Laya.Scene()); scene.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { console.log("scene HIERARCHY_LOADED"); }); scene.once(Laya.Event.LOADED, null, function (sprite) { console.log("scene LOADED"); });HIERARCHY_LOADED 和 LOADED有什么区别?为什么对scene不起作用...
来源: Laya_社区 发布时间: 20170619
...ddComponent (/Users/admin/layaA4/layaA4/bin/js/bundle.js:39363:9) at Function.Utils3D._createNodeByJson (/Users/admin/layaA4/layaA4/bin/js/bundle.js:31020:26) at Function.Utils3D._createNodeByJson (/Users/admin/layaA4/layaA4/bin/js/bundle.js:31003:24) at Function.Utils3D._createNod...
来源: Laya_社区 发布时间: 20170505