大约有 921 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0173 秒)
Laya_社区(590) Laya2.0_文档(118) Laya3.0_api(66) Laya2.0_api(60) laya_api(56) Laya3.0_文档(19) Laya_示例(7) Laya2.0_示例(5)
.../把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台 * * <p>也可以获取原始图片数据,分享到网上,从而实现截图效果,示例:</p> * * var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 * v...
来源: Laya_社区 发布时间: 20180826
...一次 */ onAwake(): void { let sound = new Laya.SoundNode(); // 添加到舞台 Laya.stage.addChild(sound); sound.source = "resources/sound.wav"; //音频路径 sound.loop = 0; //循环次数设置,要放在autoPlay参数设置前 sound.autoPlay = true; //自动播放 sound.isMusic = false; //是...
来源: Laya3.0_文档 发布时间: 20251010
... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有...
来源: Laya3.0_api 发布时间: 20231115
... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有...
来源: Laya3.0_api 发布时间: 20231115
... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有...
来源: Laya3.0_api 发布时间: 20231115
... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有...
来源: Laya3.0_api 发布时间: 20231115
... //将新的texture放置到display容器下,显示到舞台上 var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texEnd,240,230,120,120) Laya.stage.addChild(sp); } } } 3、最终效果 2016-05-...
来源: Laya_社区 发布时间: 20160506
...间的间距(以像素为单位)。 List stage : Stage[read-only] 对舞台 stage 的引用。Sprite startIndex : int 当前显示的单元格列表的开始索引。 List staticCache : Boolean 是否静态缓存此对象的当前帧的最终属性。为 true 时,子对象变化时不会...
来源: laya_api 发布时间: 20170929
...叠 要回复问题请先登录 发起人 joye1230 相关问题 加载到舞台的3D模型不显示贴图 IDE1.7.8 json图集加载问题 请问下加载TFF字体要怎么加载呢? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 unity到导...
来源: Laya_社区 发布时间: 20170831
...eton) 创建 SpineDemo.js,代码编写如下: ```javascript //初始化舞台 Laya.init(1334,750); //创建一个Skeleton对象 var skeleton = new Laya.Skeleton(); //添加到舞台 Laya.stage.addChild(skeleton); skeleton.pos(600,700); //通过加载直接创建动画 skeleton.load("res/spine/sp...
来源: Laya2.0_文档 发布时间: 20210715