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

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

241. 如何在3d场景中添加文字 [ 95%]

...rGameScene:Laya.Camera; private _outPos:Laya.Vector3 = new Laya.Vector3(); this.txtName = new Laya.Text(); this.txtName.color = "#FFFFFF"; this.txtName.text = this.playerName; this.txtName.fontSize = 18; this.txtName.font = "Arial"; this.txtName.bold = true; this.txtName.align = "left"; Laya.stage.a...

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

242. 射线检测-点击行走 [ 95%]

...ture/layabox.png"); box.meshRender.material = mat; Laya.timer.frameLoop(1, this, checkHit); var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _position = new Laya.Vector3(0, 0.25, 0); var _quaternion = new Laya.Quaternion(); var _outHit...

来源: Laya_示例 发布时间: 20241002

243. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 95%]

...画播放模式 在下面的示例代码中有一段代码 ```typescript this.skeleton = this.templet.buildArmature(); ``` 与内置版Spine动画播放模式不同的地方在于内置版我们需要传一个参数来确认使用哪种模式(三种模式中,0:不支持换装,1,2支持换装)...

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

244. Sprite3D-Sprite3D变换 [ 95%]

...../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey2 = Laya.Sprite3D.instantiate(layaMonkey1, scene, false, new L...

来源: Laya_示例 发布时间: 20241002

245. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 95%]

...Channel.prototype; /** *播放声音 */ _proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addChannel(this); this.isStopped = false; this._clearBufferSource(); if (!this.audioBuffer) { // ...

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

246. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 95%]

BackGround.super(this);这个报错 Cannot read property 'call' of undefined 2018-01-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 你具体描述一下你出现问题的环境, 以...

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

247. 在UI类里调用启动类的静态函数失败了 [ 95%]

...l: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)); } static aaa(): void { } private onLoaded(): void { var info = new view.GameInfo(); info.zOrder = 99;//置最顶,这句话不写图层看不见 // info.init();...

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

248. 骨骼释放纹理 Templet.TEMPLET_DICTIONARY[this.url] url用错了导致Templet删不掉 [ 95%]

骨骼释放纹理 Templet.TEMPLET_DICTIONARY[this.url] url用错了导致Templet删不掉     /**     *释放纹理     */     __proto.destroy=function(){         this._isDestroyed=true;         var tTexture;         var $each_tTexture;         /*for...

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

249. 分享问题解决,关键词:canvas不在左上角,鼠标点击位置偏移怎么办 [ 95%]

...题首先,请找到代码initevent initEvent(e, nativeEvent = null) { var _this = this; _this._event._stoped = false; _this._event.nativeEvent = nativeEvent || e; _this._target = null; var docElem = document.documentElement var win = document.defaultView var clientBox = Browser._container.getBoundin...

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

250. 按钮组件 · LayaAir3.0文档 · LAYABOX [ 95%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.btn.scale(5, 5); //放大五倍 this.btn.skin = "atlas/comp/button.png"; //皮肤 this.btn.stateNum = 3; //皮肤状态 this.btn.label = "确定"; //文本标签 this.btn.labelFont = "宋体"; //文本标签字体 this.btn...

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