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

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

491. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 79%]

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

492. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 79%]

...的效果。 ![8.png](img/8.png) 完整代码如下: ```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

493. 引用MiniAdpter 类,微信开发者工具上运行,加载外部资源必定失败 [ 79%]

...a_Aaron 赞同来自: 祈祷 Laya["MiniAdpter"] 用这种写法可以避免import 就会正常, 引擎默认 引了js的,不需要编译as的 或者在game.js中把 js的去掉引用 只import As的 即可 ,不然会冲突 2019-03-25 1 0 分享 微博 QZONE 微信 祈祷 赞同来自: 例子...

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

494. 解析sk资源报错 [ 79%]

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

495. /clang:-1: linker command failed with exit code 1 (use -v to see invocation) [ 79%]

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

496. laya.d3.component.volume.batchvolume.StaticBatchVolume_API3.0 [ 78%]

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

497. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 78%]

...载完成的回调里去获取你的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

498. 怎么打开第二个工程 [ 78%]

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

499. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 78%]

发现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

500. Laya.timer.loop() 报错 Cannot read property 'loop' of null [ 78%]

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