大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0207 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...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
...navAgent.getCurrentPath()接口报错 TypeError: endRef.getData is not a function at localhost:18092/libs/laya.core.js:1151 附件 : --> 2024-06-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 囧囧有神 赞...
来源: Laya_社区 发布时间: 20240624
...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
... 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
...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
...JS要怎么写呢,我只能写到以下这一步,然后就没方向了(function(){ // Laya.class(ui.GameStartUI,"GameStart"); /***游戏开始界面***/ function GameStart(){ //游戏加载未完成暂时不显示,防止点击出错 this.btn_start.visible=false; //监听界面是否关闭 this...
来源: Laya_社区 发布时间: 20171123
...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
... 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
... = 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
...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