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

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

2121. textArea滚动条异常问题 [ 66%]

.../使用ide设置的 txtInput.on(Event.INPUT, this, onInputChange); private function reset(e:Event = null):void { clickStar = 0; txtInput.text = ""; txtLast.text = "剩余输入:" + WelfareNoticeMgr.MAX_WARD + "字"; } private function onInputChange(e:Event):void { txt...

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

2122. 导出的3D资源加载报错 [ 66%]

...      private var _stateMachine:StateMachine;         public function LayaSample()         {             Laya3D.init(1000, 500,true); //适配模式 Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; //开启统计信息 Stat.show();...

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

2123. ios14新系统问题 [ 66%]

...我2.0.1版本也遇到了,暂时这样解决了 WebGLContext.useProgram=function(gl,program){ //ios14会报错“webgl location not for current program”注释这里暂时解决 // if (WebGLContext._useProgram===program) // return false; gl.useProgram(program); WebGLContext._useProgram=program; ...

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

2124. laya.ui.TextInput_API3.0 [ 66%]

...tInput; import laya.utils.Handler; public class TextInput_Example { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, ...

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

2125. 新创建Cloud报laya is not defined [ 66%]

....3.0,demo放在附件 报错信息: TypeError: Laya.interface is not a function preload.js:55 at file:///F:/laya_workspace/FS/ElcBlock/client/bin/libs/laya.cloud.js:4:15   at file:///F:/laya_workspace/FS/ElcBlock/client/bin/libs/laya.cloud.js:682:3   TypeError: Laya.interface is not a function...

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

2126. 小游戏对读取json文件有要求吗?为啥说读取json文件错误啊 [ 66%]

...,视项目情况自行修改或拓展 public static var getUrlAndEncode:Function = function(url:String,type:String):String { if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "ascii"; } 2018-01-15 0 0 分享 微...

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

2127. 1.7.8版本Sprite3D.load问题 [ 66%]

...,并作为该节点的子节点。 *@param url */ __proto.loadHierarchy=function(url){ this.addChild(laya.d3.core.Sprite3D.load(url)); } 这个函数也是会出问题的 2017-08-09 0 0 分享 微博 QZONE 微信 183*****755 赞同来自: 请使用最新版引擎,如果还有问题,留下简...

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

2128. 文本-多行输入 [ 66%]

...rowser; import laya.webgl.WebGL; public class Text_InputMultiline { public function Text_InputMultiline() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stag...

来源: Laya2.0_示例 发布时间: 20260303

2129. Cannot read property 'call' of undefined [ 66%]

...细日志: "TypeError: Cannot read property 'call' of undefined    at Function.<anonymous> (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:130:41)    at new GameScene (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/src/GameScene.js:4:19)    at HomePa...

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

2130. vivo小游戏分包指南(TypeScript-小游戏适配文档-vivo小游戏) [ 66%]

...avascript const loadTaskA = qg.loadSubpackage({ name: 'sub1Name', success: function (data) { console.info('加载分包 sub1Name 成功') }, fail: function (err) { console.info('加载分包 sub1Name 失败', err) }, complete: function(){ // 不管分包加载成功还是失败都会执行此回调 ...

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