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

大约有 2,372 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0057 秒)

1131. Laya集成Matter.js库layaSprite水平翻转无法显示的bug [ 65%]

...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

1132. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 65%]

...如下: 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

1133. 关于laya UI 编辑器的一点建议 [ 65%]

..., 2.需要多张图组合的控件, 比如 ProgressBar , 使用 progress.png, progress$bar.png 这种$符号的特殊命名方式, 不知道的用户第一次使用可能会不知道怎么设置, 还要去查文档, 这本身也是学习成本 所以为什么不直接将这些设置为属性 比如 ...

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

1134. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 65%]

...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

1135. ☆☆☆☆☆☆☆☆☆☆☆每增加一个 view 都会增加一个 drawcall 吗 ☆☆☆☆☆☆☆☆☆☆☆ [ 65%]

...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

1136. 图像组件 · LayaAir3.0文档 · LAYABOX [ 65%]

...法只执行一次 */ onAwake(): void { this.img.skin = "resources/layaAir.png";//设置皮肤 this.img.useSourceSize = true;//设置图片大小为源大小 this.img.color = "#0000FF";//设置颜色为蓝色 } } 二、通过代码创建Image组件 有时,不想让图像组件一开始就在舞台...

来源: Laya3.0_文档 发布时间: 20230822

1137. 3d场景下面有张2d的图片,当鼠标焦点不在该网页时,2d图片为啥会闪动 [ 65%]

... 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

1138. 麻烦给一个watermaterial的示例,我自己调的没法看 [ 65%]

...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

1139. 打包后启动游戏后报错 [ 65%]

...;); 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

1140. 导入FBX报错 [ 65%]

... [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