大约有 264 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0085 秒)
...击`动画`后,将弹出时间轴动画创建面板。在面板内选择GraphicAnimation类型,输入`动画名称`,点击`确定`,如图2所示。  (图2) *Tips: 面板中的各栏目说明,请参考文档《UI页面、粒子、动画、脚本新增面板详解》* ...
来源: Laya2.0_文档 发布时间: 20210715
...x; import laya.ui.Label; class Item extends Box { public function Item() { graphics.drawRect(0, 0, 100, 20,null, "#ff0000"); var label:Label = new Label(); label.text = "100000"; label.name = "label";//设置 label 的name属性值。 label.size(100, 20); addChild(label); } } example (function (_sup...
来源: Laya3.0_api 发布时间: 20231115
...eTexture(); //如果texture有值,进行绘制并排序 if(texture) { sp.graphics.drawTexture(texture,(num-1)*70,Math.floor((num-1)/10)*70+10); } } private function chageTexture():void { //如果图片的张数超出100,将不再执行 if(num>=100) { Laya.timer.clear(this,onLoop); return; } /...
来源: Laya_社区 发布时间: 20161107
...0; sp.y = 100; var texture = Laya.loader.getRes('player/chara_01.png'); sp.graphics.drawTexture(texture, 0, 0, 96, 96); Laya.stage.addChild(sp); console.log(texture); } 这里大家可能有疑问 为什么路径地址是”player/chara_01.png” 这里我简单解释一下: 首先呢 我们是把...
来源: Laya_社区 发布时间: 20160801
...t.STATIC_DRAW*/0x88E4,true); this._indexBuffer=new IndexBuffer3D(/*laya.d3.graphics.IndexBuffer3D.INDEXTYPE_USHORT*/"ushort",this._numberIndices,/*laya.webgl.WebGLContext.STATIC_DRAW*/0x88E4,true); this._vertexBuffer.setData(vertices); this._indexBuffer.setData(indices); this.memorySize=(this._verte...
来源: Laya_社区 发布时间: 20180113
... var rankTex:Texture = new Texture(Browser.window.sharedCanvas); rankSpr.graphics.drawTexture(rankTex, 5, 78, rankTex.width, rankTex.height); 排行的所有逻辑都是在子域项目里做的是吗,那如何从排行榜返回主游戏界面呢?子域应该是不能去调主域程序的吧。 2...
来源: Laya_社区 发布时间: 20180828
...1:35 浏览: 768 关注: 3 人 momo199059 • 2018-01-06 12:06 就是我用graphics.drawRect 画一个黑色sprite,在浏览器是里正常的,但是在apk里面是白色的 momo199059 • 2018-01-06 12:07 还有就是在apk里 htmldivelement 是不是html的<image>标签就无效了 momo1...
来源: Laya_社区 发布时间: 20180106
...gin extends IEditorEnv.AssetPreview { constructor() { super(); this.sprite.graphics.drawCircle(100, 100, 50, "#ffff00"); this.sprite.size(100, 100); } async setAsset(asset: IEditorEnv.IAssetInfo): Promise<any> { this.renderTarget = this.sprite; } } 显示效果如下: 二十、自定义资...
来源: Laya3.0_文档 发布时间: 20251010
...作为 Sprite3D 的子节点,反之亦然。 1.7 图形API 图形 API(Graphics API)是开发者与底层图形硬件之间的桥梁,提供了一套编程接口,用于控制图形的绘制与渲染。通过图形 API,我们可以在程序中绘制图形元素、加载纹理、控制变换...
来源: Laya3.0_文档 发布时间: 20251010
...ection === 0) { gridSprite.graphics.drawImage(tTileTexSet.texture, tX + tTileTexSet.offX, tY + tTileTexSet.offY); // } // else { ...
来源: Laya_社区 发布时间: 20220627