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

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

2521. 2D方向光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 46%]

...现一个简单的昼夜更替效果。 示例代码如下: const { regClass } = Laya; @regClass() export class DayNight extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.DirectionLight2D; private dayTime: number = 0; private dayDuration: number = 24; // 一个完整周期...

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

2522. List翻页效果怎么实现 [ 46%]

..."../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(thi...

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

2523. laya.net.Loader [ 46%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderProperties | Methods | Events | Constants Packagelaya.netClasspublic class LoaderInheritanceLoader EventDispatcher Object Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Public Prope...

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

2524. laya.d3.resource.RenderTextureCube_API3.0 [ 46%]

...ported Menu Globals "laya/d3/resource/RenderTextureCube" RenderTextureCube Class RenderTextureCube Hierarchy RenderTexture RenderTextureCube Implements IRenderTarget Index Constructors constructor Properties _generateMipmap _inPool _isCameraTarget _renderTarget destoryedImmediately lock name url uui...

来源: Laya3.0_api 发布时间: 20231102

2525. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 46%]

...确实难以判断 ZmySir • 2025-12-22 15:40 @LayaAir小牛:const { regClass, property } = Laya; @regClass() export default class iceMonster extends Laya.Script { declare owner: Laya.Sprite; /** 用于兜底的 Animator2D(可选) */ private _animator: Laya.Animator2D; /** 承载 .mc 的动画...

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

2526. TextInput 在panle里滚动后输入位置错乱,求解 [ 46%]

... laya.utils.Browser;     import laya.webgl.WebGL;          public class Yj_Customer     {         private var panel:Panel;                  public function Yj_Customer()          {             // 不支持WebGL时自动切换至Canvas            ...

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

2527. 性能统计面板介绍(ActionScript-2D进阶篇(AS3)-性能优化) [ 46%]

...o.as编写代码如下: ```java package { import laya.utils.Stat; public class Demo { public function Demo() { //初始化舞台 Laya.init(1334,750); //调用性能统计面板方法,(0,0)为面板位置坐标 Stat.show(0,0); } } } ``` ### 2、FPS相关的介绍 ### 2.1 FPS概述 FPS是每秒传...

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

2528. laya.d3.math.Vector3 [ 46%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Vector3Properties | Methods Packagelaya.d3.mathClasspublic class Vector3InheritanceVector3 ObjectImplements laya.d3.core.IClone Vector3 类用于创建三维向量。 Public Properties PropertyDefined By  x : NumberX...

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

2529. laya.resource.NativeRenderTexture2D_API3.0 [ 46%]

...d Menu Globals "laya/resource/NativeRenderTexture2D" NativeRenderTexture2D Class NativeRenderTexture2D RenderTexture 类用于创建渲染目标。 Hierarchy BaseTexture NativeRenderTexture2D Implements IRenderTarget Index Constructors constructor Properties _id _isCameraTarget _renderTarget depthSt...

来源: Laya3.0_api 发布时间: 20231115

2530. 发现TimeLine的一些问题,像是BUG [ 46%]

....utils.Handler; import laya.utils.Stat; import laya.utils.TimeLine; public class AirDemo { private var sp1:Sprite; private var sp2:Sprite; private var sp3:Sprite; private var timeLine1:TimeLine; private var timeLine2:TimeLine; private var timeLine3:TimeLine; public function AirDemo() { //初始化...

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