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

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

191. iOS环境浏览器使用mask黑屏 [ 80%]

...用的2.3版本,在GameControl onEnable中执行如下代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用i...

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

192. 加载的nativeimage处理 [ 80%]

...er的load方法type是nativeimage的时候,加载到的img如何应用到Sprite显示出来 2017-06-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: { Laya.loader.load("ui/image.png", H...

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

193. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 80%]

...{ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer...

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

194. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 80%]

...{ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer...

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

195. laya怎么用for循环画出很多一样的模块 [ 80%]

...: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: var sp:Sprite=new Sprite(); for(var i:int=0;i<10;i++) { sp.graphics.drawRect(i*100+10,0,100,100,"#FF0000","#0000FF"); } Laya.stage.addChild(sp); 2017-06-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

196. 在Laya设计器里, 怎么添加圆角矩形? [ 80%]

...相关的链接 提交 2 个回复 cry_11858 赞同来自: cuixueying var sp:Sprite = new Sprite(); sp.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, 0, 110, 5, 5], ["lineTo", 110, 55], ["arcTo", 110, 60, 105, 60, 5], ["lineTo", 5, 60], ["arcTo", 0, 60, 0, 55, 5], ...

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

197. 3D模型加载出错 [ 80%]

...加自定义模型         //this.box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1)));         Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){         //Laya.Sprite3D.load("res/layatest...

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

198. Sprite设置宽度为0显示的是原图大小 [ 80%]

Sprite设置宽度为0显示的是原图大小 const sp = new Laya.Sprite(); sp.texture = Laya.loader.getRes("res/progress_1.png"); sp.width = 0;Sprite设置宽度为0不生效,显示的是原图大小 附件 : --> 2022-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

199. 绘制曲线(JavaScript-LayaAir基础篇(JS)-矢量图) [ 80%]

...的是二次贝塞尔曲线,开发者可以在API文档中搜索laya.display.Graphics类可以查看到“drawCurves();”曲线绘制方法。该方法的详细说明如下图所示: ​ ![blob.png](img/3.png) ​ (图8) 下面我们用LayaAir引擎绘制矢量曲线,示例代码如下:...

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

200. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 80%]

...ne3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albedoTe...

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