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

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

2561. 鼠标交互-自定义事件 [ 46%]

...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_示例 发布时间: 20260824

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

...2-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 的动画播放器 */ private iceMonsterAni: L...

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

2563. Sprite-轴心点 [ 46%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Pivot { private sp1: Sprite; private sp2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDD...

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

2564. Config_API3.0 [ 46%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "Config" Config Class Config Config 用于配置一些全局参数。如需更改,请在初始化引擎之前设置。 Hierarchy Config Index Properties FPS animationInterval defaultFont defaultFontSiz...

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

2565. Laya1.6.2发布flash版本 [ 46%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 【带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined 求高人分享使用protobuff框架的游戏demo(TS版本或AS版本的) 问题状态 最新活动: 2020-02-17 10:4...

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

2566. 请问,在使用插件导出包含多个动画的FBX文件时报错,怎么处理? [ 46%]

...o/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) LayaExport.DataManager.saveLaniData (UnityEngine.GameObject gameObject, .JSONObject obj) LayaExport.DataManager.getAnimatorComponentData (UnityEngine.GameObject gameObject, .JSONObject component, System.Collections.Generic.List`1...

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

2567. 骨骼动画-藤蔓 [ 46%]

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

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

2568. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 46%]

...0版本之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { public function CustomMaterial() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自...

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

2569. 计时器-间隔循环 [ 46%]

...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_Interval { private rotateTimeBasedText: Text; private rotateFrameRateBasedText: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); L...

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

2570. laya.d3.physicscannon.shape.CannonSphereColliderShape_API3.0 [ 46%]

...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/physicsCannon/shape/CannonSphereColliderShape" CannonSphereColliderShape Class CannonSphereColliderShape SphereColliderShape 类用于创建球形碰撞器。 Hierarchy CannonColliderShape Canno...

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