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

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

2751. 借助AMD来解决HTML5游戏开发中的痛点 [ 40%]

...ayaAir的类都要增加一个适配。比如`Laya.EventDispatcher`: ```ts export const EventDispatcher = Laya.EventDispatcher; ``` ## 更改ts编译配置 使用示例项目中的`tsconfig.json`覆盖原来的`tsconfig.json`文件。这样我们就可以使用tsc watch模式实现极速编译,而...

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

2752. 区块地图-滚动地图 [ 40%]

...andler = Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class TiledMap_SimpleDemo { private tiledMap: TiledMap; private mLastMouseX: number = 0; private mLastMouseY: number = 0; private mX: number = 0; private mY: number = 0; constructor() { // 不支持WebGL时自动切换...

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

2753. [LayaNative3]Laya3.28/9原生打包ISO视频播放闪退 [ 40%]

...import { VideoRuntimeBase } from "./VideoRuntime.generated";  @regClass() export class VideoRuntime extends VideoRuntimeBase {     onEnable(): void {         Laya.stage.on(Laya.Event.MOUSE_DOWN, () => {             //Laya.loader.load("resources/files/layaAir.mp4").then(() => {   ...

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

2754. 鼠标交互-双指旋转(多点触控) [ 40%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Rotate { private sp: Sprite; private preRadian: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = S...

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

2755. unity 通过laya 导出 灵异事件 [ 40%]

...ject. UnityEngine.Object.get_name () (at C:/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:189) n.a (UnityEngine.Mesh A_0, System.String A_1, System.Boolean A_2) (at <8191b0b4723d4658b95c167f60d265c8>:0) n.c () (at <8191b0b4723d4658b95c167f60d265c8>:0) n.b ...

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

2756. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 40%]

...,功能单一,建议用脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { private mat1: Laya.BlinnPhongMaterial; private newScene: Laya.Scene3D; private sMapRes = "remote/model/res/Conventional/map1.ls" private sBullRes = "remote/model/res/Con...

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

2757. laya.physics.joint.JointBase_API3.0 [ 40%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/joint/JointBase" JointBase Class JointBase 关节基类 Hierarchy Component JointBase DistanceJoint GearJoint MotorJoint MouseJoint PrismaticJoint PulleyJoint RevoluteJoint WeldJoint WheelJ...

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

2758. UI-FontClip [ 40%]

... FontClip=Laya.FontClip; import Image=Laya.Image; import WebGl=Laya.WebGL; export class Font_Clip{ private TestClipNum:string="res/comp/fontClip_num.png"; private _ClipNum:string="res/comp/fontClip_num.png"; private _ClipNum1:string="res/comp/fontClip_num.png"; private TestFontClip:string="res/comp/...

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

2759. Laya.Pool用法 [ 40%]

...* Author :Terry        * Created: 2017-08-07 09:44:25      */     export class ProtoPool {         private static _dic: Laya.Dictionary;         public static PROTO_HEAD: string = "proto_Head";         public static PROTO_BINARY_REQUEST: string = "proto_BinaryRequest";       ...

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

2760. laya.d3.renderobjs.nativeobj.NativeInstanceRenderElementOBJ_API3.0 [ 40%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeInstanceRenderElementOBJ" NativeInstanceRenderElementOBJ Class NativeInstanceRenderElementOBJ Hierarchy NativeRenderElementOBJ NativeInstanceRenderElementOBJ Implement...

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