大约有 2,619 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0065 秒)
...入protobufjs第三方库,报错找不到文件 Laya2.0 在Main.ts里:import protoAll = require("../libs/protoAll"); var pCls = protoAll.com.bee.protobuf.ClimbingTowerInfoProto; var p: protoAll.com.bee.protobuf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = true; 用...
来源: Laya_社区 发布时间: 20190228
...的效果。  完整代码如下: ```java package { import laya.display.Stage; import laya.display.Text; import laya.resource.Texture; import laya.utils.Handler; import laya.display.BitmapFont; public class TestBitmapFont { //自定义文件名称 private var mFontName:String = ...
来源: Laya2.0_文档 发布时间: 20201114
...a_Aaron 赞同来自: 祈祷 Laya["MiniAdpter"] 用这种写法可以避免import 就会正常, 引擎默认 引了js的,不需要编译as的 或者在game.js中把 js的去掉引用 只import As的 即可 ,不然会冲突 2019-03-25 1 0 分享 微博 QZONE 微信 祈祷 赞同来自: 例子...
来源: Laya_社区 发布时间: 20190324
...unds of the DataView 代码: package com.ppt.components.role { import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.events.Event; public class CombatRole extends BaseRole { private var _templet:Templet; p...
来源: Laya_社区 发布时间: 20170204
...*051 • 2019-05-09 13:35 请问一下,你们conchRuntime里面impert的#import <functional>,需要说明库的支持,编译又报了这个错误! Laya_Aaron • 2019-05-09 15:43 好像是链接我们的conch.a没弄对 185*****051 • 2019-05-09 11:58 没有用引擎打包,只是我...
来源: Laya_社区 发布时间: 20190508
...nableMergeBatchRender enableStaticInstanceBatchRender enabled hideFlags id importance probePosition type Methods _initialize _motionInVolume _reCaculateBoundBox _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onUpdate reBatch C...
来源: Laya3.0_api 发布时间: 20231115
...载完成的回调里去获取你的texture并drawTexture // 程序入口 import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; class GameMain{ constructor() { Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets...
来源: Laya_社区 发布时间: 20170329
...18-02-25 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: package { import laya.device.media.Video; import laya.events.Event; import laya.utils.Browser; public class Main { public function Main() { Laya.init(500,500); Laya.stage.once(Event.CLICK,this,this.clickHandler); } private function cli...
来源: Laya_社区 发布时间: 20180223
发现bug,update大问题!!!!!!!!! 2.13版本 import { TableMgr } from "../common/table/TableMgr"; import { BaseWin } from "../common/windows/BaseWin"; import Const from "../Const"; import UIMain from "../ui/Game/UIMain"; export default class GameWnd extends BaseWin { pu...
来源: Laya_社区 发布时间: 20221207
Laya.timer.loop() 报错 Cannot read property 'loop' of null import { Image } from "laya/ui/Image"; // import { List } from "laya/ui/List"; import { Laya } from "laya"; export default class test_move extends Image{ // /** @prop {name:move_img, tips:"用来移动的箭头", type:Image} */ // public ...
来源: Laya_社区 发布时间: 20200203