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

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

661. Laya.Pool用法 [ 39%]

...法 屏蔽的代码是想用pool实现的,结果不行,请指点:  module com.bigao.h5.ProtoPool {     import Pool = Laya.Pool;     // import proto = com.bigao.h5.proto     /**      * 协议对象池      * Author :Terry        * Created: 2017-08-07 09:44:25      */     e...

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

662. 【分享】通过命令行调用compile.js编译,不使用laya-cmd [ 39%]

...rIDE\ set IDE_APP_DIR=%IDE_DIR%resources\app\ set gulpjs=%IDE_APP_DIR%node_modules\gulp\bin\gulp.js set compilejs=%~dp0.laya\compile.js ::创建一个js文件 echo let app = require("electron").app>compile_temp.js echo let gulp = require('gulp')>>compile_temp.js echo let childprocess = requ...

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

663. 区块地图-滚动地图 [ 39%]

...mY, Laya.Browser.width, Laya.Browser.height); } } new TiledMap_ScrollMap();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; ex...

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

664. 骨骼动画-Spine事件 [ 39%]

...te(this,playEnd)) } function playEnd() { mLabelSprite.removeSelf(); } })();module laya { import EventData = Laya.EventData; import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Sprite = Laya.Sprite; import Event = Laya.Event; import Browser = Laya.Browser; import Handler = Laya.Han...

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

665. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 39%]

...创建出符合自己需要的列表。 **示例代码:** ```javascript module laya { import Stage = Laya.Stage; import List = Laya.List; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_List { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, W...

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

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

...ff(Event.MOUSE_MOVE, this, this.onMouseMove); } } new Interaction_Rotate();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Rotate { private sp: Sprite; private preRadia...

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

667. 鼠标交互-Hold [ 39%]

...(this, onHold); Laya.stage.off(Event.MOUSE_UP, this, onApeRelease); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture = Laya.Texture; import Browser = Laya.Browser; import Ease = Laya.Ease; import Handler = Laya.Handler; import Twe...

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

668. 骨骼动画-Spine事件 [ 39%]

...d)) } playEnd() { mLabelSprite.removeSelf(); } } new Skeleton_SpineEvent();module laya { import EventData = Laya.EventData; import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Sprite = Laya.Sprite; import Event = Laya.Event; import Browser = Laya.Browser; import Handler = Laya.Han...

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

669. 缓动-时间线 [ 39%]

...meLine.pause(); break; case Keyboard.R: timeLine.resume(); break; } } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Keyboard = Laya.Keyboard; import TimeLine = Laya.TimeLine; import WebGL = Laya.WebGL; export class Tween_TimeLine { priva...

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

670. 物理引擎-布 [ 39%]

...stage._canvasTransform.d) }); } })();var Matter: any; var LayaRender: any; module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import Render = Laya.Render; export class Physics_Cloth { private stageW...

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