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

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

561. Laya2.7.1 射线提示rayCast未定义 [ 66%]

...s 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)); this.camera.transform.rotate(new Laya.Vector3...

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

562. 有关Laya3D碰撞检测疑问 [ 66%]

...; private label: Laya.Label; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show();  var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene;  this._outHitAllInfo = new Array<La...

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

563. laya.ui.Clip_API3.0 [ 66%]

...on Clip_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { clip = new Clip("resource/ui/clip_num.png", 10, 1);//创建一个 Clip 类的实例对象 clip ,传入它的皮肤skin和...

来源: Laya3.0_api 发布时间: 20231115

564. Quick Compile: false [ 66%]

...地服务器吗? Dialog 设置closeDialogOnSide = false 没效果 Laya.stage.renderingEnabled = false; 调用时,微信真机测试会白屏 小游戏取消自动缓存后MiniAdpter.autoCacheFile=false, 怎样去加载自己手动缓存的本地文件 Ignored attempt to cancel a touchmove even...

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

565. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 66%]

...上的对齐参照物 let reference: Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(reference); reference.pos(0, 0); reference.size(Laya.stage.width, Laya.stage.height); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); let tipElmt = Laya.Browser.createElement("i...

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

566. 发布Oppo小游戏屏幕适配bug [ 66%]

...函数重置ui。注释掉就好了。自问自答,希望有用。 Laya.stage.on(Laya.Event.RESIZE, this, this.resize);     static resize(): void { // let w = this.config.width; // let h = this.config.height; // let screen_wh_scale = Laya.Browser.clientWidth / Laya.Browser.clientHeight; // if (L...

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

567. 请问2.0射线到底如何使用呢? [ 66%]

...线)   function 构造函数() { // 添加鼠标点击事件 Laya.stage.on( Event.MOUSE_DOWN, this, onMouseDown ); // 射线初始化 ray = new Ray( new Vector3(0,0,0), new Vector3(0,0,0) ); } // 鼠标点击方法 function onMouseDown(){     // 获取鼠标在屏幕点击的位置   ...

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

568. laya.display.Text [ 66%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  font : String 文本的字体名称,以字符串形式表示。 默认值为...

来源: laya_api 发布时间: 20170929

569. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 66%]

...typescript Laya.timer.frameLoop(1, this, this.animateFrameRateBased); Laya.stage.on("click", this, this.dispose); dispose() { Laya.timer.clear(this, this.animateFrameRateBased); } ``` 当一个对象的生命周期结束时,记得清除其内部的Timer: ### **三、获取显示对象边界的...

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

570. 自定义事件只能绑定到Sprite上吗? [ 66%]

...吗? Sprite有自定义事件 我自己写的类怎么绑定 classthis.stage.event(this.EVENT_COMPLETE,'complete'); 2017-01-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 请参考自...

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