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

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

331. laya.display.Animation [ 82%]

...nceAnimation AnimationBase Sprite Node EventDispatcher Object Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控制接口。 本类使用了动画模版缓存池,它以一定的内存开销来节省CPU开销,当相同的动画模版被多次使用时,相比...

来源: Laya2.0_api 发布时间: 20190513

332. 分享:改变图片皮肤,保持图片原样宽高显示 [ 82%]

...rivate function onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { private var sp:Sprit...

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

333. laya.d3.graphics.IndexBuffer3D [ 82%]

... No Frames IndexBuffer3DProperties | Methods | Constants Packagelaya.d3.graphicsClasspublic class IndexBuffer3DInheritanceIndexBuffer3D Buffer laya.resource.Resource IndexBuffer3D 类用于创建索引缓冲。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties P...

来源: laya_api 发布时间: 20170929

334. 绘制背景帧 [ 82%]

...为透明 新建View及背景图片自适应大小如何设置 如何清除graphics绘制的矢量图 ios 背景音乐需要手动点一下屏幕才能播放 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, webgl 绘制graphics出报错 问题状态 最新...

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

335. 设置骨骼动画停留在某一帧/某一个时间点 [ 82%]

...templet.getTotalkeyframesLength(index));         }         let graphics = armature._getGrahicsDataWithCache(index, frame);         graphics ? armature.graphics = graphics : armature._createGraphics(frame);     } } 2018-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

336. laya.d3.graphics.VertexParticleShuriken [ 82%]

...ames No Frames VertexParticleShurikenProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexParticleShurikenInheritanceVertexParticleShuriken ObjectImplements IVertex VertexPositionNormalColorTangent 类用于创建粒子顶点结构。 Public Properties PropertyDefined By  cornerT...

来源: laya_api 发布时间: 20170422

337. 被遮罩的对象的子显示对象再添加遮罩,子显示对象的遮罩显示不正确 [ 82%]

...ask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya.Tween.to(this.img, {x:100}...

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

338. 可以为线条设置hit(碰撞)区域吗? [ 81%]

...以为线条设置hit(碰撞)区域吗? var sp:Sprite = new Sprite();sp.graphics.clear(); sp.graphics.drawRect(0, 0, 100,100,"#ff0000" ); var hit:HitArea = new HitArea(); hit.hit = sp.graphics; sp.hitArea = hit;   使用上面的方法可以给有填充 sp 添加触发区域!   但是如果sp...

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

339. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 81%]

...游戏开发基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先...

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

340. 音频-播放演示 [ 81%]

...ite; let btn = new Sprite(); Laya.stage.addChild(btn); btn.size(w, h); btn.graphics.drawRect(0, 0, w, h, "#FF7F50"); btn.graphics.fillText(labelText, w / 2, 8, "24px SimHei", "#FFFFFF", "center"); return btn; } // 播放音效 onPlaySound() { console.log("播放音效"); Laya.SoundManager.playSound(...

来源: Laya2.0_示例 发布时间: 20240930