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

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

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

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

693. 使用3DUI · LayaAir3.0文档 · LAYABOX [ 61%]

... } from "./BloodBar.generated"; import { Main } from "./Main"; @regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on( Laya.Event.CLICK, this, this.onHurt ); } onHurt(): void { this.bar.value = this.bar.value - 0.1; th...

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

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

695. 骨骼动画-多纹理 [ 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_示例 发布时间: 20241001

696. 网络和格式-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_示例 发布时间: 20241001

697. 网络和格式-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_示例 发布时间: 20241001

698. 输入设备-贪吃蛇(重力感应) [ 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_示例 发布时间: 20241001

699. 资源版本管理问题,根据官方文档 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

700. 使用 addChild 加载界面后,绑定事件报错 [ 61%]

...gameStart); 加载场景后报上面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartUI {     constructor() {         super();          this.btnStart.on(Laya.Event.CLICK, this, this.startGame);     }      startGame(): void {   ...

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