大约有 654 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0069 秒)
Laya_社区(257) Laya2.0_文档(145) Laya3.0_api(106) laya_api(50) Laya3.0_文档(50) Laya2.0_api(42) Laya_示例(2) Laya2.0_示例(2)
...e Overrides Resource.__constructor Defined in laya/resource/Texture.ts:228 创建一个 Texture 实例。 Parameters Default value source: Texture | BaseTexture = null Default value uv: ArrayLike<number> = null UV 数据信息。 Default value sourceWidth: number = 0 Default value sourceHeight...
来源: Laya3.0_api 发布时间: 20231115
...用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性能最高。 webgl下命令缓存模式缺点:只会减少节点...
来源: laya_api 发布时间: 20170929
...mationPlayer(): AnimationPlayer Defined in laya/ani/AnimationPlayer.ts:268 创建一个 AnimationPlayer 实例。 Returns AnimationPlayer Properties isCache isCache: boolean = true Defined in laya/ani/AnimationPlayer.ts:65 是否缓存 playbackRate playbackRate: number = 1 Defined in laya/ani/Animat...
来源: Laya3.0_api 发布时间: 20231115
...nvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取...
来源: laya_api 发布时间: 20170422
...用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性能最高。 webgl下命令缓存模式缺点:只会减少节点...
来源: Laya2.0_api 发布时间: 20190513
...用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性能最高。 webgl下命令缓存模式缺点:只会减少节点...
来源: Laya2.0_api 发布时间: 20190513
...始播放时,其他动效会自动停止播放。 可以通过LayaAir IDE创建。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在场景中...
来源: Laya2.0_api 发布时间: 20190513
...管理最终生成的文件名是什么。甚至,由于LayaAirIDE 2.0在创建项目的时候,已经自动在代码里集成了版本管理类ResourceVersion,开发者连怎么去使用ResourceVersion类都无须关注,只需要在打算启用版本管理时,在项目发布界面,勾选...
来源: Laya2.0_文档 发布时间: 20210715
... Menu Globals "laya/d3/resource/models/Mesh" Mesh Class Mesh Mesh 类用于创建文件网格数据模板。 Hierarchy Resource Mesh Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock morphTargetData name url uuid DEBUG MESH_INSTANCEBUFFER_TYPE_NORMAL MESH_INST...
来源: Laya3.0_api 发布时间: 20231115
...合。 LayaAir引擎中的2D刚体组件类是 Laya.RigidBody ,继承自创建组件的基类 Component。 2.1.2 如何添加刚体组件 在LayaAirIDE中,我们可以直接为2D节点添加刚体组件。如动图2-1所示。 (动图2-1) 在实际使用的时候,单独添加刚体的时候比...
来源: Laya3.0_文档 发布时间: 20240528