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

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

1871. TypeError: Cannot read property '_byteLength' of null [ 66%]

...Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' TypeError: Laya.Movie...

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

1872. 请教一个图片处理成黑白的问题 [ 66%]

... 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0, 0, 0, 1, 0]; var grayscaleFilter = new ColorFilter(grayscaleMat); var grayApe = new Sprite(); grayApe.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(grayApe); grayApe.filters = [grayscaleFilter];如果一批图片 只要是 grayApe  Sprite  的...

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

1873. 绘制圆形与扇形(JavaScript-LayaAir基础篇(JS)-矢量图) [ 66%]

...      function drawSomething()     {         var sp = new Sprite();         Laya.stage.addChild(sp);         //画圆         sp.graphics.drawCircle(80,80,50,"#ff0000");      } })(); ``` 代码运行效果如下图所示: ​ ![blob.png](img/2.png...

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

1874. 在微信小游戏中使用BitmapFont会导致报错. [ 66%]

...Version.FILENAME_VERSION);  function beginLoad(){     let timerFont = new Laya.BitmapFont();     timerFont.loadFont('res/timerfont.fnt', Laya.Handler.create(this, () => {         Laya.Text.registerBitmapFont('Name', timerFont);         Laya.loader.load("res/atlas/comp.atl...

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

1875. 排行榜上的玩家头像绘制问题 [ 66%]

... // context.drawImage(image1, 0, 0, 80 * index, 80)       var image = new Laya.Image();       image.loadImage(item.avatarUrl, 0, 0, 40, 40);     用这种方法加载头像会报错啊,是什么原因呢 2018-05-16 0 2 分享 微博 QZONE 微信 187*****279 赞同来自: 真机调试和...

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

1876. textInput的单行输入&多行输入(ActionScript-LayaAir基础篇(AS3)-文本) [ 66%]

...} private function Text_InputSingleline():void { var textInput:TextInput = new TextInput("单行输入");//创建一个 TextInput 类的实例对象 textInput 。 textInput.wordWrap = true;//设置 textInput 的文本自动换行。 textInput.fontSize = 30;//设置 textInput 的字体大小。 textI...

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

1877. Laya2.0添加模糊滤镜报错 [ 66%]

Laya2.0添加模糊滤镜报错 let bg = new Laya.Image(CommonConstant._hunterBgPath); let blurFilter:Laya.BlurFilter = new Laya.BlurFilter(); blurFilter.strength = 4; bg.filters = [blurFilter]; 报错: Laya.BlurFilter is not a constructor 怎么破? 2019-01-05 添加评论 免费帖 --> 分享...

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

1878. sk文件加载 [ 66%]

...ivate function onLoaded():void {             var sk:Skeleton = new Skeleton();             trace("-==========================")             sk.load("res/sk/cow.sk",Handler.create(this,function(){                  sk.play(1,true)          ...

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

1879. layabox能用上webp图片格式么? [ 66%]

...有问题的 你自己可以写个简单的dmeo试一下 var loader:Loader=new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onCom); loader.load(new URLRequest("aaa")); private function onCom(event:Event):void { // TODO Auto-generated method stub addChild(event.target.content) }...

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

1880. 关于Panel的双指响应问题 [ 66%]

.../dialog (3).png", Laya.Handler.create(this, function(){     var dialog = new Image("../../res/ui/dialog (3).png");     dialog.scaleX = 2;     dialog.scaleY = 2;     var panel = new Panel();     panel.vScrollBarSkin = "";     panel.hScrollBarSkin = "";     panel.addChild(dialog);     ...

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