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

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

291. 回调函数传递sprite3D问题 [ 65%]

回调函数传递sprite3D问题 使用 Laya.timer.frameLoop();函数 看了官方API,第四个参数是传一个数组,作为回调函数的入参, var spriteArray = new Array(); spriteArray.push(warehouse1); Laya.timer.frameLoop(1, this, freshBubble,spriteArray); function freshBubble(sprite...

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

292. this.bitmap.activeResource is not a function. [ 65%]

...; rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); sprite.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); this._content.addChild(sprite); sprite.pos(40, 190);报:this.bitmap activeResource is not a function 2019-09...

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

293. 关于fillText问题 [ 65%]

关于fillText问题 private label_image:Laya.Sprite=new Laya.Sprite(); this.label_image.graphics.fillText(xxx, xxx,"15px Arial","#000000","center"); this.label_image.pos(0,0) Laya.stage.addChild(this.label_image); 这样写为什么CurMem会增加接近16M,这不就是在精灵上绘制嘛,...

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

294. laya.media.SoundNode_API3.0 [ 65%]

...de Class SoundNode 用于播放背景音乐或者音效的节点 Hierarchy Sprite SoundNode Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alp...

来源: Laya3.0_api 发布时间: 20231115

295. laya.map.GridSprite_API3.0 [ 65%]

...Protected All Inherited Externals Only exported Menu Globals "laya/map/GridSprite" GridSprite Class GridSprite 地图的每层都会分块渲染处理 本类就是地图的块数据 author ... Hierarchy Sprite GridSprite Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseU...

来源: Laya3.0_api 发布时间: 20231115

296. laya.particle.Particle2D_API3.0 [ 65%]

..." Particle2D Class Particle2D Particle2D 类是2D粒子播放类 Hierarchy Sprite Particle2D Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoPlay autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHie...

来源: Laya3.0_api 发布时间: 20231115

297. laya.display.Stage [ 64%]

...s | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage 单例访问。 Stage提供几种适配模式,不同的适配模式会产生不...

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

298. native2.0压缩纹理如何使用 [ 64%]

...der.load("res/1.pkm", Handler.create(null, function():void {     var spr:Sprite = new Sprite();     spr.loadImage("res/1.pkm");     spr.pos(100, 100);     Laya.stage.addChild(spr); }), null, Loader.IMAGE); 附件就是tp转的图片,这个是加载的代码 1.zip 2018-12-20 0 0 分享 微...

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

299. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 64%]

...微博 QZONE 微信 cuixueying 赞同来自: package { import laya.display.Sprite; import laya.utils.Browser; import laya.webgl.WebGL; public class HelloLaya { public function HelloLaya() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.g...

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

300. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 64%]

...个Laya的AS项目,代码如下: ```java package { import laya.display.Sprite; import laya.events.Event; import laya.net.HttpRequest; import laya.utils.Browser; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:...

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