大约有 575 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0075 秒)
Laya_社区(290) Laya3.0_api(65) Laya2.0_api(58) laya_api(54) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(26) Laya3.0_文档(19)
...; 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
...微博 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
...s | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage 单例访问。 Stage提供几种适配模式,不同的适配模式会产生不...
来源: Laya2.0_api 发布时间: 20190513
...,植被层,建筑层等) 本类就是层级类 author ... Hierarchy Sprite MapLayer Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior layerName mouseThrough name tag tarLayer drawtocanvCtx Accessors _isHeightSet _isWidthSet active acti...
来源: Laya3.0_api 发布时间: 20231115
...个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
...过设置对话框的zOrder属性,可以更改弹出的层次 Hierarchy Sprite DialogManager Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize closeEffectHandler hitTestPrior lockLayer maskLayer mouseThrough name popupEffectHandler tag drawtocanvCtx Ac...
来源: Laya3.0_api 发布时间: 20231115
...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
...lip MovieClip 用于播放经过工具处理后的 swf 动画。 Hierarchy Sprite MovieClip Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize basePath hitTestPrior interval loop mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet activ...
来源: Laya3.0_api 发布时间: 20231115
...加了着色器的材质文件添加在2D节点上,如图2-3所示,以Sprite为例,将材质添加在Material属性上。 每一种2D组件都有Material属性。 (图2-3) 总结一下就是,Shader应用到材质上,材质再应用到2D节点上。 2.3 文件结构 在LayaAir引擎中...
来源: Laya3.0_文档 发布时间: 20250214
...是正常的,只能来这里请教了 switch (key) { case 'E': frameX = sprite.pivotX * 2; frameY = sprite.pivotY; frameRotation = 0; frame.scaleX = 1; frame.scaleY = 1; break; case 'Q': frameX = sprite.pivotX * 2; frameY = sprite.pivotY; frameRotation = 180; frame.scaleX = 1; frame.scaleY = 1; br...
来源: Laya_社区 发布时间: 20190723