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

大约有 1,253 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0046 秒)

671. laya.utils.Timer_API3.0 [ 62%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/utils/Timer" Timer Class Timer Timer 是时钟管理类。它是一个单例,不要手动实例化此类,应该通过 Laya.timer 访问。 Hierarchy Timer Index Constructors constructor Propert...

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

672. JS里面定义一个函数,无法使用Laya.Handler.creat回调 [ 62%]

...Handler.create时候提示onTxtLoad is undfine.请教应该怎么定义? export default class LocalTxt{ constructor() { LocalTxt.Instance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT); } } ...

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

673. laya.d3.renderobjs.nativeobj.NativeIndexBuffer3D_API3.0 [ 62%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeIndexBuffer3D" NativeIndexBuffer3D Class NativeIndexBuffer3D Hierarchy IndexBuffer3D NativeIndexBuffer3D Index Constructors constructor Properties _buffer _bufferType ...

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

674. 编辑模式下的赋值不保留? [ 62%]

...露姓名的无头像者 • 2018-10-25 14:56 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个b...

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

675. UI-ProgressBar [ 62%]

...aya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { private progressBar: ProgressBar; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CEN...

来源: Laya_示例 发布时间: 20250221

676. 鼠标交互-拖动 [ 62%]

... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "res/apes/monkey2.png"; private ape: Sprite; private dragRegion: Rectangle; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Br...

来源: Laya2.0_示例 发布时间: 20250221

677. 动画节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...,示例代码如下: const { regClass, property } = Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此...

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

678. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 62%]

...= Laya.ComboBox; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "res/ui/combobox.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage....

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

679. 鼠标脚本(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 62%]

...,并且给4个猴都添加了脚本。 > **脚本类**: ```typescript export default class MouseScript extends Laya.Script3D{ private meshsp:Laya.MeshSprite3D; constructor(){super();} /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执...

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

680. Sprite-容器 [ 62%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Container { // 该容器用于装载4张猩猩图片 private apesCtn: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.sta...

来源: Laya_示例 发布时间: 20250221