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

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

101. 渲染优化原则(JavaScript-2D进阶篇(JS)-性能优化) [ 69%]

# 图形渲染性能 ### **一、优化Sprite** 1. 尽量减少不必要的层次嵌套,减少Sprite数量。 2. 非可见区域的对象尽量从显示列表移除或者设置visible=false。 3. 对于容器内有大量静态内容或者不经常变化的内容(比如按钮),可以对整个...

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

102. laya.display.FrameAnimation [ 69%]

...layClasspublic class FrameAnimationInheritanceFrameAnimation AnimationBase Sprite Node EventDispatcher ObjectSubclasses EffectAnimation 节点关键帧动画播放类。解析播放IDE内制作的节点动画。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Pro...

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

103. 渲染优化原则(TypeScript-2D进阶篇(TS)-性能优化) [ 69%]

# 图形渲染性能 ### **一、优化Sprite** 1. 尽量减少不必要的层次嵌套,减少Sprite数量。 2. 非可见区域的对象尽量从显示列表移除或者设置visible=false。 3. 对于容器内有大量静态内容或者不经常变化的内容(比如按钮),可以对整个...

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

104. laya.display.AnimationPlayerBase [ 68%]

...displayClasspublic class AnimationPlayerBaseInheritanceAnimationPlayerBase Sprite Node EventDispatcher ObjectSubclasses Animation, FrameAnimation 动画播放基类,提供了基础的动画播放控制方法和帧标签事件相关功能。 可以继承此类,但不要直接实例化此类,因...

来源: laya_api 发布时间: 20170929

105. laya.display.EffectAnimation [ 68%]

...ass EffectAnimationInheritanceEffectAnimation FrameAnimation AnimationBase Sprite Node EventDispatcher Object 动效模板。用于为指定目标对象添加动画效果。每个动效有唯一的目标对象,而同一个对象可以添加多个动效。 当一个动效开始播放时,其他动...

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

106. 为什么rotation、scale赋值了不管用? [ 68%]

为什么rotation、scale赋值了不管用? 我创建了一个Sprite3D: this.role3D = Laya.MeshSprite3D.load("3d/ben/Export.lh") this.role3D.transform.scale = new Laya.Vector3(0.5,0.5,0.5); this.role3D.transform.position = new Laya.Vector3(0,20,0); 以上的scale、position设置均不起作...

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

107. 显示文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 68%]

...s() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { th...

来源: Laya3.0_文档 发布时间: 20251010

108. 关于适配有点疑惑 [ 68%]

...DDLE; createCantralRect(); })(); function createCantralRect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); var rect1 = new Sprite(); rect1.graphics.drawRect(Laya.stage.width / 3 * 2 , Laya.stage.height / 3 * 2 - 65, 100, 100, "blue"); // rec...

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

109. vivo小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 68%]

...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //...

来源: Laya3.0_文档 发布时间: 20251010

110. 引擎基础概念 · LayaAir3.4 · 引擎文档 · LAYABOX [ 68%]

...)类是所有可加入显示列表对象的基类。2D 的基础精灵 Sprite 和 3D 的基础精灵 Sprite3D 都继承自 Node。不仅如此,所有继承自 Node 的子类或孙类对象,统称为“节点”,如:Sprite 节点、Image 节点等。 只有继承自 Node 的对象,才具...

来源: Laya3.0_文档 发布时间: 20251010