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

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

101. laya.maths.Rectangle [ 72%]

...度或宽度值为 0 的矩形,如:var rect2:Rectangle = new Rectangle(300,300,50,0); RectanglePublic Constants ConstantDefined By  TEMP : Rectangle[static] 全局临时的矩形区域,此对象用于全局复用,以减少对象创建RectangleProperty Detailbottompropertybottom:Number  ...

来源: Laya2.0_api 发布时间: 20190513

102. 请大家帮助优化一下这个抛物线的代码 [ 72%]

... private ball:Ball; private targetX:number = 600; private targetY:number = 300; private centerX:number = 0; private centerY:number = 0; private angle:number = Math.PI; private angle2:number = 0; private radius:number = 150; //半径 private speed:number = .05; private points:Array<any> = ; pri...

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

103. 调用Laya.Utils.parseXMLFromString 时一直报undefined的错误 [ 72%]

...der = initTreeItem();     // tree.xml = treeData;     // tree.size(300, 300)     // tree.x = (Laya.stage.width - tree.width) / 2;     // tree.y = (Laya.stage.height - tree.height) / 2;     // Laya.stage.addChild(tree); }      附件 : --> 2018-07-26 添加评论 免费帖 --> ...

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

104. startDrag的使用问题 [ 72%]

...kTime    (可选)橡皮筋回弹时间,单位为毫秒,默认为300毫秒,可选。          * @param data                (可选)拖动事件携带的数据,可选。          * @param disableMouseEvent    (可选)禁用其他对象的鼠标检测...

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

105. timeline 类动作节点回调 [ 72%]

...:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0) .addLabel("turnLeft",0).to(target,{x:100, y:300, scaleX:1, scaleY:0.2, alpha:0.1},2000,null,0) .addLabel("turnUp",0).to(target,{x:100, y:100, scaleX:1, scaleY:1, alpha:1},2000,...

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

106. 关于如何嵌入到网页 以及在网页中定位 [ 72%]

...要去直接改变节点属性,Render._mainCanvas.source.style.left = "300px"; 2017-05-16 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 chensa222 相关问题 救命!canvas定位后 点击区域偏移,求大大们解答 发布H5...

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

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

...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 = 90; testPan.height = 100; var mcSp:Sprite = new Sprite(); mcSp.graphics.drawRect(0,0,90,100,"#fff000"); tes...

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

108. HTMLDIVElement设置innerHTML时报错 [ 71%]

...TML = '<span style="color:#ffffff">test</span>'; html.pos(500, 300); html.size(html.contextWidth, html.contextHeight); Laya.stage.addChild(html); setTimeout(function() { html.innerHTML = ''; }, 300);此问题是由于在新版中改变了laya.html.js的HTMLDivElement中width的set方法 ...

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

109. 回调函数传递sprite3D问题 [ 71%]

...(spr.transform.position, camera.projectionViewMatrix, _outPos); msg1.scale(300/xp, 300/xp); msg1.pivot(msg1.width,msg1.height); msg1.pos(_outPos.x / Laya.stage.clientScaleX,(_outPos.y / Laya.stage.clientScaleY)-20); }我这样写 为什么在freshBubble里拿不到这个?有示例可以参考一...

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

110. 绘制图形的BUG [ 71%]

...); //加上这句正常,反之则异常 //_shape.cacheAsBitmap=true; pos(300,300); Tween.to(this,{rotation:360},3000); } override public function get width():Number{ return _shape.width; } override public function get height():Number{ return _shape.height; } } } BUG2:package ui.test { import laya....

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