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

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

31. 骨骼动画-橡胶人 [ 85%]

...rowser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Skeleton_SpineStretchyman { private mAniPath:string; private mStartX:number = 200; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private m...

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

32. 骨骼动画-橡胶人 [ 85%]

...rowser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Skeleton_SpineStretchyman { private mAniPath:string; private mStartX:number = 200; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private m...

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

33. 骨骼动画-适配版Spine [ 85%]

...适用结尾为.skel的资源 import SpineSkeleton = Laya.SpineSkeleton; export class SpineBinary { private aniPath = "res/bone/spineboy-pma.skel"; private templet:SpineTemplet; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL...

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

34. laya.d3.webxr.core.AxiGamepad_API3.0 [ 85%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/WebXR/core/WebXRGamepad" AxiGamepad Class AxiGamepad 类用来描述gamepad Axis Hierarchy EventDispatcher AxiGamepad Index Properties axisLength handness EVENT_OUTPUT Methods destroy event hasL...

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

35. 鼠标交互-自定义事件 [ 85%]

...rt Ease = Laya.Ease; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_CustomEvent { public static ROTATE: string = "rotate"; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.s...

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

36. 骨骼动画-多纹理 [ 85%]

...rowser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class MultiTexture { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skel...

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

37. UI运行时 · LayaAir3.4 · 引擎文档 · LAYABOX [ 85%]

...import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } } 其次,可...

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

38. 网络和格式-POST [ 85%]

...aya.HttpRequest; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Network_POST { private hr: HttpRequest; private logger: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN...

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

39. [LayaAir3]Laya旧版本的TiledMap如何隐藏某一层级的格子贴图 [ 85%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? LayaTree v1.0.5版本更新(2021.11.17) LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) native初始化的时候getExePath报错 IOS17.2(beta版本)必现 关于微...

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

40. 网络和格式-GET [ 85%]

...aya.HttpRequest; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Network_GET { private hr: HttpRequest; private logger: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_...

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