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

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

1921. laya 1.0 源码中 RunDriver.as里measureText的问题 [ 69%]

...A5]$"); private static var fontMap:Array = ; public static var measureText:Function = function(txt:String, font:String):* { var isChinese:Boolean = hanzi.test(txt); if (isChinese && fontMap[font]) { return fontMap[font]; } var ctx:* = Browser.context; ctx.font = font; var r:* = ctx.measureTe...

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

1922. [LayaAir3]【Laya3.2.0】3D导航导航navAgent.getCurrentPath()接口报错 [ 69%]

...navAgent.getCurrentPath()接口报错 TypeError: endRef.getData is not a function at localhost:18092/libs/laya.core.js:1151 附件 : --> 2024-06-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 囧囧有神 赞...

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

1923. 报错:__glsl is not defined,而且bundle.js出现__glsl [ 69%]

...sl is not defined,而且bundle.js出现__glsl  bundle.js开始代码:(function (__glsl) { 'use strict'; __glsl = __glsl && __glsl.hasOwnProperty('default') ? __glsl['default'] : __glsl; bundle.js结束代码: onConfigLoaded() { //加载IDE指定的场景 GameConfig.startScene &&am...

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

1924. WaterPrimaryMaterial的使用 [ 69%]

...     Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = t...

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

1925. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 69%]

...Scene_AnimationEvent/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) var _script = cube.addComponent(SceneScript) as SceneScript; //label用于显...

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

1926. 微信飞机大战中“开始页面”逻辑功能关于js继承问题 [ 69%]

...JS要怎么写呢,我只能写到以下这一步,然后就没方向了(function(){ // Laya.class(ui.GameStartUI,"GameStart"); /***游戏开始界面***/ function GameStart(){ //游戏加载未完成暂时不显示,防止点击出错 this.btn_start.visible=false; //监听界面是否关闭 this...

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

1927. 微信小游戏编译报错 [ 69%]

...11:56:05 WAGame.js:4 gameThirdScriptError document.createTextNode is not a function TypeError: document.createTextNode is not a function at u (http://127.0.0.1:23181/game/code.js:10:31792) at s (http://127.0.0.1:23181/game/code.js:10:31291) at n (http://127.0.0.1:23181/game/code.js:10:30084) at e.ex...

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

1928. 在Unity中导出拖尾系统(ActionScript-3D基础(AS3)-LayaAir3D之拖尾系统) [ 69%]

... Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Handler.create(this,function(sp:Sprite3D):void{ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function():void{ //使用差速来体现移...

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

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

... = Laya.WebAudioSoundChannel.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 (!th...

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

1930. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 69%]

...r: Cannot read property 'XXX' of undefined private var spe:Sprite; private function showApe():void {             spe = new Sprite();             spe.mouseEnabled = true;             spe.x = 100;             spe.y = 100;             spe.width = 512;    ...

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