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

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

801. Laya无法把截屏然后转Base64. [ 52%]

.../把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台 * * <p>也可以获取原始图片数据,分享到网上,从而实现截图效果,示例:</p> * * var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 * v...

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

802. 音频节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...一次 */ 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

803. laya.particle.Particle2D_API3.0 [ 52%]

... 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

804. laya.media.SoundNode_API3.0 [ 52%]

... 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

805. laya.map.GridSprite_API3.0 [ 52%]

... 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

806. laya.ui.Clip_API3.0 [ 52%]

... 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

807. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 52%]

...           //将新的texture放置到display容器下,显示到舞台上             var sp:Sprite=new Sprite();             sp.graphics.drawTexture(texEnd,240,230,120,120)             Laya.stage.addChild(sp);         }     } } 3、最终效果 2016-05-...

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

808. laya.ui.List [ 52%]

...间的间距(以像素为单位)。 List stage : Stage[read-only] 对舞台 stage 的引用。Sprite  startIndex : int 当前显示的单元格列表的开始索引。 List staticCache : Boolean 是否静态缓存此对象的当前帧的最终属性。为 true 时,子对象变化时不会...

来源: laya_api 发布时间: 20170929

809. skin加载url资源不会刷新 [ 52%]

...叠 要回复问题请先登录 发起人 joye1230 相关问题 加载到舞台的3D模型不显示贴图 IDE1.7.8 json图集加载问题 请问下加载TFF字体要怎么加载呢? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 unity到导...

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

810. Spine动画使用(TypeScript-LayaAir基础篇(TS)-动画基础) [ 52%]

...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