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

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

261. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...结合1.3节的脚本控制,在脚本中输入如下代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "...

来源: Laya3.0_文档 发布时间: 20251010

262. 自动旋转后残影 [ 59%]

...spatcher; import laya.utils.Browser; import laya.utils.Tween;     public class testVH {   protected var _tip:Sprite; public function testVH() { IEventDispatcher; Config.isAlpha = true; Config.isAntialias = true; Laya.init(0, 0,true); Laya.stage.bgColor = "#000000"; ChangeSize(); Laya.timer.once(1...

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

263. RopeJoint代码动态创建 无法设置otherbody [ 59%]

...g * @ email:0110110110@qq.com * @ data: 2022-04-09 15:53 */ export default class fruit extends Laya.Script {     static Fru:fruit;     public rope:Laya.RopeJoint     constructor() {         super();        fruit.Fru=this;             }      onAwake() {         let rig:Laya...

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

264. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 59%]

...文件后重试? 我就弄了一个测试代码,压根就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp);...

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

265. 自己创建的box作为tab,为啥没有点击事件啊? [ 59%]

...ssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyPage2UI);     var UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.super(this);     this.MyTab.selectHandler = new Laya.Handler(this, onSelect, null,...

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

266. 更新最新版layaNative0.98 返回键问题 [ 59%]

...08-08 16:52 浏览: 1006 关注: 2 人 vincent • 2017-08-08 16:51 static class layaGameListener implements ILayaEventListener { public Activity activity; @Override public void ExitGame() { Log.i("=======", "======exit"); activity.finish(); activity = null; //mLayaEngine.onDestr...

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

267. Laya3D场景加载问题 [ 59%]

...载问题 测试内容:加载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

268. LayaAir和LayaNative 交互问题 [ 59%]

... zmc1220 赞同来自: js的: // a、创建Test类 var Test=Laya.PlatformClass.createClass("com.layabox.test.Test"); // 这个名字要与下面声明的Java的类名匹配. 包名+类名 //var a=false; var a = true; // Test.call("openlight",a); // 注册手指按下事件 document.addEventListene...

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

269. LayaAirNative初始化的4个问题 [ 59%]

...945-27945/com.twand.kozhanji I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$6>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/RenderProcessGoneDetail; 06-27 18:03:47.977 27945-27945/com.twand...

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

270. 关于3d项目中component的问题 [ 59%]

...0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { var _this = this; CmpScript.__super.prototype._initialize.call(this, owner); } CmpScript.prototype._update = function (state) { C...

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