• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,038 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)

841. mac平台1.7.20.2beta版本下compileTargets设置不生效 [ 47%]

...置为粗体 txt.bold = true; //设置文本的显示起点位置X,Y txt.pos(60, 100); //设置舞台背景色 Laya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } }  2. 修改.as3proj文件相应标签如下 <compileTargets> <compile path="src\Hel...

来源: Laya_社区 发布时间: 20180914

842. Sprite-旋转缩放 [ 47%]

...ape.loadImage("res/apes/monkey2.png"); this.ape.pivot(55, 72); // this.ape.pos( Laya.stage.width / 2, Laya.stage.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.stage.height / 2; this.scaleDelta = 0; Laya.timer.frameLoop(1, this, this.animate); } animate() { this.ape.rotation += 2;...

来源: Laya2.0_示例 发布时间: 20251209

843. LayaAirIDE中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 47%]

...    //设置文本的显示起点位置X,Y             txt.pos(60, 100);                           //设置舞台背景色             Laya.stage.bgColor = '#23238E';                           //将文本内容添加到...

来源: Laya2.0_文档 发布时间: 20210715

844. 如何用代码控制panel的vscroll滚动幅度 [ 47%]

...则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); panel.vScrollBarSkin='comp/vscroll.png'; panel.hScrollBarSkin='comp/hscroll.png'; Laya.stage.addChild(panel); //panel的子对象,,切忌要设置宽高,且宽高大于panel宽高 var bg:Sprite=new Sprite()...

来源: Laya_社区 发布时间: 20170719

845. new BoxMesh(x,y,z)中 的bug? [ 47%]

...了进一步验证,创建了一个新的box2(1,1,1),设置了它的pos为(0,-10,0);说明一点,两个物体旋转为(0,0,0),那么假设是由于摄像机问题引起的视觉问题,box2应该是相对box1垂直屏幕有段相对位移,然而事实是它是在竖直方...

来源: Laya_社区 发布时间: 20180720

846. 版本1.7.14beta , tsconfig.json里 target设置为es6, 项目发布时会报错, [ 47%]

...es\uglify-js\lib\parse.js:204 throw new JS_Parse_Error(message, line, col, pos); ^ Error at new JS_Parse_Error (E:\Program Files\LayaAirIDE\resources\app\node_modules\uglify-js\lib\parse.js:196:18) at js_error (E:\Program Files\LayaAirIDE\resources\app\node_modules\uglify-js\lib\parse.js:204:11) at ...

来源: Laya_社区 发布时间: 20180124

847. qq玩一玩 问题 [ 47%]

...amera.clearFlag= Laya.BaseCamera.CLEARFLAG_SKY;   camera.viewport.project(pos, camera.projectionViewMatrix, outPos);    outPos.x = outPos.x / Laya.stage.clientScaleX;    outPos.y = outPos.y / Laya.stage.clientScaleY; 3D坐标转2D坐标 计算结果错误  见附件 附件 : --> qqDemo.zip 201...

来源: Laya_社区 发布时间: 20180521

848. laya.ani.bone.Skeleton_API3.0 [ 47%]

...stroy onDisable onEnable once parentRepaint paused pivot play playbackRate pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild replaceSlotSkinByIndex replaceSlotSkinName resume runCallLater scale setChildIndex setGraphics setSelfBounds setSlo...

来源: Laya3.0_api 发布时间: 20231115

849. 在UI类里调用启动类的静态函数失败了 [ 47%]

...创建的多个动画,怎么分别调用?如图 Text类中竟然没有pos函数的api~ app启动动画应该如何去掉 构造函数不能进断点 .bat脚本能调用layaIDE的相关功能吗? 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用...

来源: Laya_社区 发布时间: 20180507

850. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 47%]

... this.aniBirdSing.play(); this.aniBirdSing.pivot(0, 120); this.aniBirdSing.pos(94+0, 259+120); this.aniBirdSing.size(120, 120); console.log(this.aniBirdSing.width, this.aniBirdSing.height); this.aniBirdSing.mouseEnable = true; Laya.stage.addChild(this.aniBirdSing); } 根据这个代码,我认为...

来源: Laya_社区 发布时间: 20171026