大约有 2,741 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0053 秒)
Laya_社区(1926) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { ape1.rotation += 2; ape2.rotation -= 4; } } }
来源: Laya_示例 发布时间: 20251223
...置canvas高度 public canvasWrapText(options) { var settings = { canvas:null, canvasWidth:512, //canvas的宽度 canvasHeight:128, //canvas的宽度 font:"40px 'Microsoft Yahei'", //文字样式 text:"请修改掉默认的配置", //需要绘制的文本 color:"#000000"...
来源: Laya_社区 发布时间: 20180814
...器: laya.core.js:15215 Uncaught TypeError: Cannot read property '_tf' of null 粒子放着放着:(内存占用巨大) laya.webgl.js:8156 Uncaught RangeError: Array buffer allocation failed 用着某个粒子: GL_OUT_OF_MEMORY : glShaderSource: too large laya.webgl.js:8055 GL_OUT_OF_MEMORY : glShade...
来源: Laya_社区 发布时间: 20171021
...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 官网示例摇一摇报错,就解决方案 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 点击代码编辑模器 就提示无法打开代码编辑器 请配置 这个怎么...
来源: Laya_社区 发布时间: 20170607
...目就报错 部分日志: TypeError: Cannot read property 'addChild' of null at IFrameRenderItem.__proto.show (file:///D:/LayaAirIDE/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:26665:27) 二、社区手机号不能登陆 日志在附件“bug.rar”里,清了缓存用微信...
来源: Laya_社区 发布时间: 20200909
...aya.loader.load("data/Questv1_Regular.ttf", Handler.create(this,onLoaded), null, Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf"); if(arr && Browser.window.conch) { Browser.window.conch.setFontFaceFromBuffer("hu",ar...
来源: Laya_社区 发布时间: 20180705
...hongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); //测试遮挡剔除 material.cull = 0 box.meshRenderer.material = material; let res1 = Laya.Sprite3D.instantiate(box); let res2 = Laya.Sprite3D.inst...
来源: Laya_社区 发布时间: 20190717
...vent.CLICK, this, onSpriteClick); } private function onSpriteClick(e:Event=null):void { var randomAngle:int = Math.random() * 180; //发送自定义事件 sp.event(ROTATE, [randomAngle]); } // 触发自定义的rotate事件 private function onRotate(newAngle:int):void { Tween.to(sp, {"rotation" : ne...
来源: Laya_示例 发布时间: 20251223
...en( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(e: any = null): void { let ta: Laya.TextArea = new Laya.TextArea(""); ta.skin = this.skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; this.ow...
来源: Laya3.0_文档 发布时间: 20251010
... typeset() { this._isChanged = false; if (!this._text) { this._clipPoint = null; this._textWidth = this._textHeight = 0; this.graphics.clear(true); return; } Browser.context.font = this._getCSSStyle().font; this._lines.length = 0; this._lineWidths.length = 0; this.typeLines.length = 0; this._text = ...
来源: Laya_社区 发布时间: 20180417