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

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

701. 计时器-间隔循环 [ 61%]

...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...

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

702. laya.d3.renderobjs.nativeobj.NativeRenderContext3DOBJ_API3.0 [ 61%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeRenderContext3DOBJ" NativeRenderContext3DOBJ Class NativeRenderContext3DOBJ Hierarchy NativeRenderContext3DOBJ Implements IRenderContext3D Index Constructors construct...

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

703. laya.d3.renderobjs.nativeobj.NativeVertexBuffer3D_API3.0 [ 61%]

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

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

704. Sprite-节点控制 [ 61%]

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

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

705. 骨骼动画-多纹理 [ 61%]

...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...

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

706. 输入设备-贪吃蛇(重力感应) [ 61%]

...dler = Laya.Handler; import WebGL = Laya.WebGL; import Event = Laya.Event; export class InputDevice_GluttonousSnake { private seg:Segment; private segments:Array = []; private foods:Array = []; private initialSegmentsAmount:number = 5; private vx:number = 0 private vy:number = 0; private targetPosit...

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

707. 网络和格式-ProtocolBuffer [ 61%]

...Laya.Loader; import Browser = Laya.Browser; import Handler = Laya.Handler; export class Network_ProtocolBuffer { private ProtoBuf:any = Browser.window.protobuf; constructor() { Laya.init(550, 400); this.ProtoBuf.load("../../res/protobuf/user.proto", this.onAssetsLoaded); } private onAssetsLoaded(err...

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

708. 网络和格式-ProtocolBuffer [ 61%]

...Laya.Loader; import Browser = Laya.Browser; import Handler = Laya.Handler; export class Network_ProtocolBuffer { private ProtoBuf:any = Browser.window.protobuf; constructor() { Laya.init(550, 400); this.ProtoBuf.load("res/protobuf/user.proto", this.onAssetsLoaded); } private onAssetsLoaded(err:any, ...

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

709. 资源版本管理问题,根据官方文档 layacmd 执行后资源加载不了 [ 61%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 问题状态 最新活动: 2018-05-15 20:05 浏览: 1433 关注: 2 人 吉日-jerry • 2018-05-16 11:27 嗯,谢谢,官方例子里没有说明,应该是我IDE版本最新的问题导致 吉日-jerry • 201...

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

710. 鼠标交互-自定义事件 [ 61%]

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