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

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

321. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 49%]

... export default class GameUI extends ui.test.TestSceneUI { constructor() { super();          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,functi...

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

322. APK-update(TypeScript-LayaNative原生服务-LayaNative进阶) [ 49%]

...gine即可。 ```java protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); /* * 如果不想使用更...

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

323. Laya3.0 工程内的bundle.js文件存在某个类 导出微信工程后bundle.js又将该类裁剪了 [ 49%]

...TFrmLogin extends TGenFrmLogin {      onConstruct(): void {         super.onConstruct();     }  } 附件 : --> 2023-05-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox小高 赞同来自: 您好...

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

324. list 加载动画为什么实现的效果会错乱掉? [ 49%]

...效果会错乱掉? var WID = 80, HEI = 400; function Item1() { Item1.__super.call(this); this.size(WID, HEI); this.setImg = function(src) { var ani = new Animation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前...

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

325. 升级到3.0-beta6无法选择资源了 [ 49%]

...    public image: Laya.Image = null;      constructor() {         super();     } } 附件 : --> 2023-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 layabox 赞同来自: 第一、你代码@propert...

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

326. 输入设备-贪吃蛇(重力感应) [ 49%]

...ight; } } class Segment extends Laya.Sprite { constructor(width, height) { super(); this.size(width, height); this.init(); } init() { this.graphics.drawRect(-this.height / 2, -this.height / 2, this.width + this.height, this.height, "#FF7F50"); } // 获取关节另一头位置 getPinPosition() { cons...

来源: Laya2.0_示例 发布时间: 20240930

327. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 49%]

... > ```typescript class MonkeyScript extends Laya.Script3D { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation, false); } onLateUpdate() { console.l...

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

328. LayaBox加载TiledMap地图和注意事项 [ 49%]

...export default class DesertUI extends Laya.Scene {    constructor() { super();        DesertUI.instance = this; Laya.MouseManager.multiTouchEnabled = false;        this.loadScene("Desert.scene"); //初始化舞台 Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL);...

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

329. 背景音乐播放内存问题 [ 48%]

...ound[url]; this.audioBuffer = null; this.data = null; this.__toPlays = []; super.dispose(); }   如果不添加最后4行代码的话,每次切换回来内存就都会上涨了,现在是只有第一次上涨,之后就不会了 2018-02-05 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自:...

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

330. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 48%]

...ivate rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor(){ super(); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { (this.owner as Laya.Sprite3D).transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ```...

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