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

大约有 388 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0034 秒)

101. 如何在3D旋转中使用缓动 Laya.Tween.to()?官方示例我看过,不是旋转 [ 70%]

...r, { x: _vector3.x, y: _vector3.y, z: _vector3.z + (20 * Math.PI / 180) }, 500); 2017-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: 这个只是get,没有set。 2017-08-24 0 2 ...

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

102. 骨骼动画-换装 [ 70%]

...项目开发更高效。let mFactory, mArmature, mStartX = 200, mStartY = 500, mCurrIndex = 0, mSkinList = ["goblin","goblingirl"], mCurrSkinIndex = 0; class Skeleton_ChangeSkin { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sp...

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

103. 自己画的view不支持鼠标点击吗? [ 70%]

...吗? var path:Array=[["moveTo", 68, 1080], //画笔移到A点 ["lineTo", 500, 1080], //画到B点 ["lineTo", 650, 700], //再画到C点 ["lineTo", 340, 700], //继续画到D点 ["closePath"] //闭合路径 ]; btn_1=new View(); btn_1.graphics.drawPath(0, 0, path, {fillStyle: "#123456"}); this.addCh...

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

104. 关于Graphics绘制多次后使用它仍然是多个drawcall [ 70%]

...ff00"); g1.drawRect(666, 666, 100, 100, "#FFff00"); for (var i = 0; i < 5000; i++) { g1.drawRect(888, 200, 100, 100, "#FFff00"); } var g2 = new Graphics(); g2.drawRect(0, 0, 100, 100, "#00FF00"); var g3 = new Graphics(); g3.drawRect(500, 500, 100, 100, "#FFFFFF"); var arr = [g1, g2, g3]; var inde...

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

105. layaNative安卓打包后,如何开启webgl? [ 70%]

...layaNative安卓打包后,如何开启webgl? android打包后,用Laya.init(500, 852, Laya.WebGL);启动,发现没有开启webgl。 打日志能发现: Render.isWebGL = false Render.isConchApp = true Render.isConchWebGL = false 如果是native包,不能开启webgl,相比于源码,很亏呢...

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

106. 鼠标事件能否在有图形的区域感应,特别是子项坐标为负数时(已经找到问题) [ 70%]

...Pan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild( testPan ); testPan.pos( 300,300); testPan.graphics.drawRect(0,0,90,100,"#faaff0"); testPan.on(Event.CLICK,this,onMouseClick); testPan.width ...

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

107. 怎么打开第二个工程 [ 69%]

...laya.utils.Browser; public class Main { public function Main() { Laya.init(500,500); Laya.stage.once(Event.CLICK,this,this.clickHandler); } private function clickHandler():void { var iframe:Object = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布局定位。...

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

108. 多次加载一个页面出现_$P为null的情况 [ 69%]

...neClick = function(){ var gold = StorageHelper.getUserGold(); if(gold > 500){ Online.joinGame().then(function(data){ console.log(data); StorageHelper.setDeskNo(data.desk.deskNo); StorageHelper.setDeskSeat(data.ownSeatNo); Laya.stage.destroyChildren(); var playSence = new OnlinePlaySence(data); La...

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

109. 在一个矩形之上画另一个矩形,只显示一个矩形 [ 69%]

...); //串盒子的宽 var boxWidth = 440; //串盒子的高 var boxHeight = 500; //串盒子 this.chuanBox = new Laya.Rectangle(Laya.stage.width - boxWidth >> 1, Laya.stage.height - boxHeight - 10, boxWidth, boxHeight); //画出盒子 Laya.stage.graphics.drawRect( this.chuanBox.x, this.chuanBox...

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

110. 小游戏发布 本地包大小问题,code.js 太大了怎么处理呢? [ 69%]

...警告不影响逆代码上传,你可以忽视,只要文件体积大于500k的都会给出这样的提示。 2018-05-11 0 3 分享 微博 QZONE 微信 yung 赞同来自: 单个文件超过500K会提示这个警告 警告说不做js压缩,不做es6转换为es5,而这两个对我们而言都...

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