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

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

1901. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 69%]

...dScriptError Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signature provided. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signature provided. at TextureCube.__proto._createWebGlTextu...

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

1902. IBQuadrangle 错误,在线等... [ 69%]

...线等... Uncaught Error: IBQuadrangle count:16526 must<:16383     at Function.GlUtils.fillIBQuadrangle      at Function.GlUtils.expandIBQuadrangle     at WebGLContext2D.__proto.flush      at RenderContext.__proto.flush      at Stage.__proto.render      at Stage.__proto._loop   ...

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

1903. 关于js继承类class的参数问题 [ 69%]

...享 微博 QZONE 微信 w1114367261 赞同来自:  * @example      * (function (_super){      *     function Item(){      *         Item.__super.call(this);//初始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new ...

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

1904. 微信小游戏 使用innerHTML时抛异常 "需要引入xml解析库文件"请问如何解决 [ 69%]

...          */         public static var parseXMLFromString:Function = function(value:String):XmlDom {             var rst:*;             var Parser:*;             value = value.replace(/>\s+</g, '><');             try {   ...

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

1905. Sprite图片显示不了 [ 69%]

Sprite图片显示不了 public function HelloLayabox() {             Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);             // 不支持WebGL时自动切换至Canvas             Laya.init(800, 600);             Laya.stage.alignV = Stage.ALIGN_M...

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

1906. UI-Button [ 69%]

... var xOffset:int; private var yOffset:int; private var skins:Array; public function UI_Button() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.sta...

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

1907. 资源回收的清理不干净的bug [ 69%]

...     Laya.Sprite3D.load("Models/Ball.lh", Laya.Handler.create(this, function(sp){             for(var i=0; i<3; i++){                 var ball = myscene.addChild(sp.clone());                 ball.name = i.toString();           ...

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

1908. tesT中是一个按钮,在这按钮中加入怎么样的函数,才能调用SAMPLE中的MOVEleft这个函数? [ 69%]

...相关的链接 提交 1 个回复 cuixueying 赞同来自:   把private function moveleft改为public function moveleft,在Sample中实例化moveleft所在的类,就可以通过实例去调用了。   建议你网上找下AS3的属性和函数相互调用的相关教程,学习下! 2016-12...

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

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

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

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

1910. typescipt在一定范围内加载图片按照等比排列 [ 69%]

...TestUI.imgList.renderHandler = new Laya.Handler(this, onImgListRender);   function onImgListRender(box: Laya.Box) {     let model = box.dataSource;     let panel = box.getChildByName('panel') as Laya.Panel;     let img = panel.getChildByName('img') as Laya.Image;      img.skin = mo...

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