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

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

1001. 真机调试 开启子域后 提示出现window is not defined [ 41%]

...as); rankTexture.bitmap.alwaysChange = true; var pl = new Laya.Sprite() pl.graphics.drawTexture(rankTexture, 0, 0); body.addChild(pl)  } 附件 : --> 2018-12-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya...

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

1002. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 40%]

...         _proto.setGradientText = function () {             this.graphics.clear();             let data = '';             data += 'data:image/svg+xml,' + '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" ';             da...

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

1003. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 39%]

...</span>"; Laya.stage.addChild(html3); var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,300,30,null,"#999999"); Laya.stage.addChild(sp);4、实现超链接 示例如下:public function HtmlDemo() { var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML="<span href='http://ask.layab...

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

1004. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 39%]

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

1005. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 39%]

...re = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("test/test.png"); var sp:Sprite = new Sprite(); sp....

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

1006. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 38%]

...的需求适当调整,如果内容不变可以不用设置成true sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); Laya.stage.addChild(sprite); }); } }开发数据域:public class LayaUISample { public function LayaUISample() { //微信小游戏适配库初始化 MiniAd...

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

1007. 自定义shader-边缘光照shader [ 38%]

...ore.material.BaseMaterial; import laya.d3.core.scene.Scene; import laya.d3.graphics.VertexElementUsage; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.models.CapsuleMesh; import laya.d3.resource.models.Mesh; import laya.d3.resource.models.SphereMesh; import l...

来源: Laya_示例 发布时间: 20260303

1008. 动画不显示 [ 35%]

...Texture = Laya.loader.getRes(m_MapImgUrl);             m_mapLayer.graphics.drawTexture(tex);             m_mapLayer.width= tex.width;             m_mapLayer.height = tex.height;             this.on_stage_resize();         }         private function on_...

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

1009. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 32%]

...击`动画`后,将弹出时间轴动画创建面板。在面板内选择GraphicAnimation类型,输入`动画名称`,点击`确定`,如图2所示。 ![2](img/2.png)(图2) *Tips: 面板中的各栏目说明,请参考文档《UI页面、粒子、动画、脚本新增面板详解》* 点击确...

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

1010. 自定义shader-地形shader [ 30%]

....material.TerrainMaterial; import laya.d3.core.scene.Scene; import laya.d3.graphics.VertexElementUsage; import laya.d3.math.Vector2; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.models.CapsuleMesh; import laya.d3.resource.models...

来源: Laya_示例 发布时间: 20260303