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

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

2301. 导出的3D资源加载报错 [ 49%]

...laya.events.Event;     import laya.utils.Stat;          public class LayaSample {                  private var _stateMachine:StateMachine;         public function LayaSample()         {             Laya3D.init(1000, 500,true); //适配模式 La...

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

2302. Laya3D场景加载问题 [ 49%]

...载问题 测试内容:加载3D场景   代码如下: export default class TestUI extends ui.test.TestSceneUI {     private resource: Array<String> = [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.crea...

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

2303. 这种进度条怎么实现? [ 49%]

...信 Barry Allen 赞同来自:  import Sprite = Laya.Sprite export default class Test extends Sprite{ public DEF_SIZE: number = 200 public CIRCLE_WIDTH: number = 20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.c...

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

2304. exception info:[TypeError:undefined is not an object(evaluating'tInfo[0].attributes')] at line 764 [ 49%]

...为object层,层级设置无效的问题 Laya2.1.0 JS调用Java PlatformClass undefined Uncaught TypeError: Cannot read property 'props' of undefined 运行报错 Uncaught Can not find scene:GameView.scene undefined Warning!,this class[MiniAdpter] already exist: Object {init: } 鼠标自定义样...

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

2305. 急急急,如何设置按钮点击加载ani [ 49%]

...aths.Rectangle;     import laya.display.Stage;          public class LayaUISample {         private var skin:String = "https://layaair.ldc.layabox.co ... 3B%3B         private var aniPath:String = "https://layaair.ldc.layabox.co ... 3B%3B         public function L...

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

2306. 为什么创建的脚本 变量在编辑模式赋值后 运行时为undfined [ 49%]

...头像者 • 2018-10-24 18:14 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖为预制...

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

2307. laya.d3.physics.CharacterController_API3.0 [ 49%]

...ted Menu Globals "laya/d3/physics/CharacterController" CharacterController Class CharacterController CharacterController 类用于创建角色控制器。 Hierarchy PhysicsComponent CharacterController Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor script...

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

2308. WXOpenDataViewer组件用于制作微信排行榜,报错 [ 49%]

...文档步骤用WXOpenDataViewer做排行榜的时候,会报Can not find class laya.ui.WXOpenDataViewer,然后去引擎文件找这个类,发现没有laya.ui.WXOpenDataViewer,发布到微信小游戏中,也会报undefined,不知道往下怎么进行,我利用Beta3版本中的WXOpenDataV...

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

2309. 自定义页面基类的时候,会自动添加Laya命名空间导致报错 [ 49%]

...己的BaseView) declare module Laya{//在这个module里添加     class BaseView extends Scene{}//继承自Scene }里加上自己定义的页面,然后在编辑页面F9的Code导入类里写上引用和赋值   import BaseView from "../BaseView"; Laya.BaseView = BaseView 2019-09-06 0 1 分...

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

2310. dialog的lock属性没出现 [ 49%]

... laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; private var assets:Array; public function...

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