大约有 3,008 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1073) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(100)
...: **方式一:** ```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
...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
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
... 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
API DocumentationAll Packages | All Classes | Index | Frames No Frames PoolMethods Packagelaya.utilsClasspublic class PoolInheritancePool Object Pool 是对象池类,用于对象的存贮、重复使用。 合理使用对象池,可以有效减少对象创建的开销,避免频繁的垃...
来源: laya_api 发布时间: 20170929
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
扩展脚本问题,麻烦帮看下 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
... 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
编译的时候报错 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
...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