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

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

91. AS3与JS混合编码(ActionScript-2D进阶篇(AS3)-扩展模块) [ 87%]

...: **方式一:** ```java package { import laya.utils.Browser; public class JSDemo { public function JSDemo() { //初始化引擎 Laya.init(0, 0); //运行JS alert Browser.window.alert('我是alert'); } } } ``` **方式二:** ```java package { public class JSDemo { public function JSDemo() { //...

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

92. 使用/*[COMPILER OPTIONS:normal]*/来编译分包无法生成Dictionary类的定义 [ 87%]

...testdict\src\test"文档类 package { /*[COMPILER OPTIONS:normal]*/ public class testdict { public function testdict() { } } }分包的类package test { import laya.display.Stage; import laya.utils.Dictionary; import aa.TestAA; public class AAA { public function AAA() { TestAA; Laya.stage; Stage; va...

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

93. ts项目 模块问题 [ 87%]

ts项目 模块问题 b文件写了个class ,怎么在a文件new class? export 显示未定义,require也用不了   //b文件 export default class player extends Laya.Sprite { constructor() { super(); this.pivot(this.width / 2, this.height / 2); this.graphics.drawRect(0, 0, this._size, this...

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

94. 分包后, 资源加载问题 [ 86%]

... console.log("kk1") var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec; console.log("kk2") var FrameAnimation=laya.display.FrameAnimation,Sprite=laya.display.Sprite,Text=laya.display.Text; console.log("kk22") var View=laya.ui.View; con...

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

95. laya.utils.Pool [ 86%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames PoolMethods Packagelaya.utilsClasspublic class PoolInheritancePool Object Pool 是对象池类,用于对象的存贮、重复使用。 合理使用对象池,可以有效减少对象创建的开销,避免频繁的垃...

来源: laya_api 发布时间: 20170929

96. D.TS访问问题 [ 86%]

D.TS访问问题 declare module common_lib{ class ByteArray extends com.tengxun.utils.ByteArray{} class ParserUtil extends com.utlis.ParserUtil{} class MathR extends com.utlis.MathR{} } 我是仿照layaAir.d.ts来写的,这些代码上面还有ByteArray这些类的declare。奇怪的是: declar...

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

97. 扩展脚本问题,麻烦帮看下 [ 85%]

扩展脚本问题,麻烦帮看下  module game { export class testbox extends Laya.Box { constructor(){ super(); console.log(this.getChildByName('btnName')) } } export class testImg extends Laya.Image { constructor(){ super(); console.log(this.getChildByName('name')) console.log(this) } } } 我...

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

98. 这个写法是什么意思,能否解释一下,谢谢 [ 85%]

...      this.init();     }     //注册类 BackGround     Laya.class(BackGround, "BackGround", laya.display.Sprite);   问题: 1.Laya.class(BackGround, "BackGround", laya.display.Sprite); 这种写法是什么意思,  Laya.class(BackGround, "BackGround", laya.display.Sprite)  是...

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

99. 编译的时候报错 [ 84%]

编译的时候报错 Undefined symbols for architecture arm64:   "_OBJC_CLASS_$_conchConfig", referenced from:       objc-class-ref in GameReadingViewController.o   "_OBJC_CLASS_$_conchRuntime", referenced from:       objc-class-ref in GameReadingViewController.o   "_OBJC_IVAR_$_conch...

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

100. 骨骼挂点图片不展示的问题 [ 84%]

...zation.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr...

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