大约有 1,017 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
Laya_社区(720) Laya3.0_api(64) Laya2.0_api(59) laya_api(56) Laya2.0_文档(43) Laya2.0_示例(32) Laya_示例(32) Laya3.0_文档(11)
...点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
...按钮,和使用 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
...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
...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
...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
... 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
...问题 有元件支援视频流渲染吗? Image元件读不了资料流 graphics alpha 问题 问题状态 最新活动: 2019-07-23 15:20 浏览: 1170 关注: 1 人
来源: Laya_社区 发布时间: 20190723
...() { 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
...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
...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