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

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

671. 1.7.8版本Sprite3D.load问题 [ 62%]

...点3d射线碰撞和UI点击穿透的问题 mask在layaplayer中有问题 graphics alpha 问题 问题状态 最新活动: 2017-08-10 01:35 浏览: 1235 关注: 2 人 zfree • 2017-08-08 21:49 这个用法改的.... 好吧 比较无奈 只能自己封装下了 zfree • 2017-08-08 21:51 /** *加载...

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

672. 使用graphsics.drawTexture画出来的图片与使用button创建同样宽高图形竟然不重合?? [ 62%]

...按钮,和使用 this.sprite_show = new Laya.Sprite(); this.sprite_show.graphics.drawTexture(Laya.loader.getRes(this.resStr), 0, 0, this.width, this.height); 画出来的两个对象,sprite_show的图形竟然被缩小了一点点。。。都是同样的宽高 2017-11-02 添加评论 免费帖 -...

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

673. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 62%]

...ar t:Texture = Laya.loader.getRes(url); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); } ``` 第三种我们直接创建一个纹理来 ```java private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer...

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

674. 鼠标穿透问题 [ 62%]

...ed function createLoading():Sprite { _loadingBg = new Sprite(); _loadingBg.graphics.drawRect(0, 0, _list.width, _list.height, "#000000"); _loadingBg.alpha = .7; _loadingBg.size(_list.width, _list.height); _loadingBg.mouseThrough = true; return _loadingBg; } } } import laya.display.Sprite; class Reco...

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

675. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 62%]

...eight,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.frameLoop(1,this,onLoopRotation,[sp]); } private function onLoopRotation(sp:Sp...

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

676. 如何更换ani中的某个节点skin属性? [ 62%]

... 17:48 浏览: 972 关注: 2 人 yhcliang • 2017-11-16 18:15 animation的graphics中的cmds=null。 yhcliang • 2017-11-16 19:29 哥,还有其他方法吗,你贴的是同一个sprite中绘制多个texture,以减少sprite的数量来优化dc吧,跟我问的貌似牛头不对马嘴。 Monic...

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

677. 求救 Laya2.0下的Particle2D问题 [ 62%]

...问题 有元件支援视频流渲染吗? Image元件读不了资料流 graphics alpha 问题 问题状态 最新活动: 2019-07-23 15:20 浏览: 1170 关注: 1 人

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

678. HtmlDivElement宽度设置错误 [ 62%]

...() { super(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new Laya.HTMLDivElement(); this.htmlTxt.style.fontSize = 20; this.htmlTxt.style.width = 200; this.htmlTxt.style.borderColor = '#000'; this.html...

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

679. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 62%]

...vate createPanel():void { let panel:Laya.Sprite = new Laya.Sprite(); panel.graphics.drawRect(0,100,100,20,0xffffff); this.addChild(panel); let box:laya.physics.BoxCollider = panel.addComponent(laya.physics.BoxCollider); box.height = 20; box.width = 100; let rigid:Laya.RigidBody = panel.addComponent(...

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

680. 分享:Skeleton下Event.LABLE('label')事件的使用 [ 62%]

...lSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) if(tEventData.name=="'fall'") { ...

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