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

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

181. 微信小游戏加载资源问题 [ 60%]

...niSoundChannel extends Laya.SoundChannel { constructor(audio, miniSound) { super(); this._audio = audio; this._miniSound = miniSound; this._onEnd = MiniSoundChannel.bindToThis(this.__onEnd, this); audio.onEnded(this._onEnd); } static bindToThis(fun, scope) { var rst = fun; rst = fun.bind(scope); ret...

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

182. 我在Layasample主类中,检测键盘按下并输出一切正常,可是放到其他类里面则能检测到按键按下,却一直输出undefined [ 60%]

...测到按键按下,却一直输出undefined var GameStart = (function (_super) {     function GameStart() {         GameStart.super(this);         Laya.stage.on(Laya.Event.KEY_DOWN,LayaSample,Test);     }     function Test(e){         console.log(e.keycode);     ...

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

183. 自己写了个label继承官方的label,出现了问题,求指导~ [ 59%]

... var _lx:int; private var _ly:int; public function Label(text:String="") { super(text); } public function get textFormat():TextFormat { return _textFormat; } public function set textFormat(value:TextFormat):void { _textFormat = value; font = _textFormat._font; fontSize = _textFormat._fontSize; color...

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

184. laya加载unity插件导出的场景 physics3D is not a function [ 59%]

... export default class GameUI extends ui.test.TestSceneUI { constructor() { super();       //添加3D场景 Laya.Scene3D.load("res/Conventional/SimpleTown_DemoScene.ls",Laya.Handler.create(this,function(s:Laya.Scene3D):void{ var scene = s; Laya.stage.addChild(scene); //创建摄像机(横纵比,...

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

185. 2.0编辑模式新建页面后缀为 .scene [ 59%]

...08 浏览: 970 关注: 2 人 lolololo • 2018-10-24 16:58 那像以前的_super (ui.GameOverUI),现在该怎么写呢?

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

186. 在Test中有个按钮点击,那么我如何发信号,使得这个点击能给控制Sample中的对象,如何调用函数 [ 59%]

...atcher; public class Mod extends EventDispatcher { public function Mod() { super(); } private static var _instance:Mod; public static function get index():Mod { return _instance ||= new Mod(); } public function init():void { Mod.event("aaaa"); } } }监听:Mod.on("aaa",this,onFunciton) 2016-12-19 0...

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

187. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 58%]

...seConstraint:*; private var engine:*; /***/ public function Retitution() { super(); this.width = stageWidth; this.height = stageHeight; setup(); } private function setup():void { initMatter(); initWorld(); Laya.stage.on("resize",this,onResize); } private function initMatter():void { var gameWorld:Sp...

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

188. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 58%]

...     private isright: boolean = false;     constructor() {         super();         this.packageName = "Game";         this.resName = "Main";         this.isFullWindow = true;     }      /**      * 初始化组件 第一次new的时候执行      */     onConstruct()...

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

189. Laya2.7.1 射线提示rayCast未定义 [ 58%]

...定义 export default class click3d extends Laya.Script3D{ constructor() { super(); //创建场景 this.scene = Laya.stage.addChild(new Laya.Scene3D()); //添加相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(new Laya.Vector3(0, 0.7, 5)); thi...

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

190. Laya.timer.loop() 报错 Cannot read property 'loop' of null [ 58%]

... n:number = 0; private x0:number = 0; private y0:number = 0; constructor(){super();} onEnable():void{ this.x = this.x0; this.y = this.y0; Laya.timer.loop(20, this, this.frameWork); // 每 20 ms 执行一次 } private frameWork():void{ this.y = this.y0 + 10 * (this.n % 3); alert("move "); } }代码...

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