大约有 2,372 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1434) Laya2.0_文档(592) Laya3.0_api(65) Laya_示例(61) Laya3.0_文档(60) Laya2.0_api(60) laya_api(54) Laya2.0_示例(46)
...ar ball_sprite = new Laya.Sprite(); ball_sprite.loadImage("common1/btn_new.png"); Laya.stage.addChild(ball_sprite); ball_sprite.scale(-1, 1, true); // !!! 如果屏蔽此行代码,球能正常显示 var ballOptions = { layaSprite:ball_sprite, render: ...
来源: Laya_社区 发布时间: 20180621
...如下: var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e...
来源: Laya3.0_文档 发布时间: 20230303
..., 2.需要多张图组合的控件, 比如 ProgressBar , 使用 progress.png, progress$bar.png 这种$符号的特殊命名方式, 不知道的用户第一次使用可能会不知道怎么设置, 还要去查文档, 这本身也是学习成本 所以为什么不直接将这些设置为属性 比如 ...
来源: Laya_社区 发布时间: 20180122
...Ground.super(this); this.bg=new Laya.sprite; this.bg.loaImage("war/beijing.png"); this.addchild(this.bg); }; Laya.class(BackGround,"BackGround",_super) return BackGround; })(Laya.sprite); BackGround.super(this);这个报错 Cannot read property 'call' of undefined 2018-01-10 0 0 分享 微博 QZON...
来源: Laya_社区 发布时间: 20180110
...m = new Laya.Image(); fish.scoreItem.skin = "assets/ui_imgs/img_10103.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish....
来源: Laya_社区 发布时间: 20180516
...法只执行一次 */ onAwake(): void { this.img.skin = "resources/layaAir.png";//设置皮肤 this.img.useSourceSize = true;//设置图片大小为源大小 this.img.color = "#0000FF";//设置颜色为蓝色 } } 二、通过代码创建Image组件 有时,不想让图像组件一开始就在舞台...
来源: Laya3.0_文档 发布时间: 20230822
... Sprite(); sprite0.loadImage("creatRoom/background_bk.png"); sprite0.pos(0,0 ); sprite0.cacheAsBitmap = true; Laya.stage.addChildAt(sprite0,0); var sprite1:Sprite = new Spri...
来源: Laya_社区 发布时间: 20170314
...jpg"); customMaterial6.normalTexture=new Laya.Texture2D.load("water/Normal.png"); customMaterial6.skyTexture =new Laya.Texture2D.load("water/Sunny1Reflection.PNG"); customMaterial6.underWaterTexture=new Laya.Texture2D.load("water/WaterSimple.jpg"); customMaterial6.vertexDispTexture=new Laya.Texture2...
来源: Laya_社区 发布时间: 20170527
...;); s.graphics.setAlpha(1); addChild(s); var img:Image = new Image("a.png"); s.addChild(img); //方案二: var s:Sprite = new Sprite(); s.graphics.alpha(0.3); s.graphics.drawRect(0,0,300,300,"#ffffff"); s.graphics.alpha(1); addChild(s); var img:Image = new Image("a.png"...
来源: Laya_社区 发布时间: 20180209
... [2023-06-20 18:19:19.050] [resource_tool] [info] Tex: palette_Transparent.png path: palette_Transparent.png [2023-06-20 18:19:19.050] [resource_tool] [info] Tex File name: palette_Transparent [2023-06-20 18:19:19.050] [resource_tool] [info] full D:\2023_6_20_秘密超市\demo\assets\u3d_fbx\Animato...
来源: Laya_社区 发布时间: 20230621