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

大约有 2,783 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0092 秒)

381. 自定义shader-地形shader [ 80%]

...); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial(); customMaterial.setSplatAlphaTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMateria...

来源: Laya_示例 发布时间: 20251209

382. Laya3D,支持的IOS版本最低是多少? [ 80%]

Laya3D,支持的IOS版本最低是多少? 使用LAYA3D,到加载Sprite3D对象到场景上的时候,遇到个问题。在PC端浏览器可以正常打开正常渲染,但是在苹果手机上,ios9以下版本(测试用了ios8.3和8.4),只出现声音。画面卡主不动了。后来...

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

383. 区块地图增加对象 [ 80%]

...andler.create(this,onLoaded)); } private function onLoaded():void { var sp:Sprite=new Sprite(); sp.loadImage('bg.png'); Laya.stage.addChild(sp); }在地图加载完成的回调里去加新的显示对象,是addChild地图之上的! 2017-05-26 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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

384. Graphics实现透明度显示 [ 80%]

...内容相关的链接 提交 2 个回复 cuixueying 赞同来自: var sp:Sprite=new Sprite(); var graphics:Graphics=new Graphics(); graphics.save(); graphics.alpha(0.5); graphics.drawRect(0,0,200,100,"#FF0000"); graphics.restore(); sp.graphics=graphics; Laya.stage.addChild(sp);实现graphics填充...

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

385. 关于切换图片的问题 [ 80%]

.../plane.png"; private plane2:string = "res/untitled.png"; private img: Laya.Sprite; private flag: boolean = false; constructor() { Laya.init(1000,800); this.img = new Laya.Sprite; this.img.loadImage(this.plane1); Laya.stage.addChild(this.img); this.img.graphics.clear(); this.img.loadImage(this.plane2...

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

386. 渲染优化原则(ActionScript-2D进阶篇(AS3)-性能优化) [ 80%]

# 图形渲染性能 ### **一、优化Sprite** 1. 尽量减少不必要的层次嵌套,减少Sprite数量。 2. 非可见区域的对象尽量从显示列表移除或者设置visible=false。 3. 对于容器内有大量静态内容或者不经常变化的内容(比如按钮),可以对整个...

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

387. 为什么hitTestPoint始终是false? [ 80%]

为什么hitTestPoint始终是false? class TestUI extends Laya.Sprite { private s:Laya.Sprite = new Laya.Sprite(); constructor() { super(); var img:Laya.Image = new Laya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } priv...

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

388. 小游戏导入手机后Sprite.Mask没有正常显示 [ 80%]

小游戏导入手机后Sprite.Mask没有正常显示 在电脑上,微信开发工具里好好的,导入手机里就不行了- -   Laya.loader.load(url, Handler.create(this, function () { var t = Laya.loader.getRes(url) var sp = new Sprite() sp.graphics.drawTexture(t, 0, 0, 80, 80) that.addChi...

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

389. Ts filter相关问题 [ 80%]

...ly _filter: any[] = [new Laya.GlowFilter("#000000", 5, 1, 1)]; 新建一个sprite sprite.filters = _filter; 这样子运行会报错:fil.action.apply3d(scope,sprite,context,0,0); 但是sprite.filters = [new Laya.GlowFilter("#000000", 5, 1, 1)];是正常的,为什么前者会报错呢? (as版本...

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

390. 关于video [ 80%]

...bGL); Laya.stage.scaleMode = "exactfit"; Laya.stage.alignH = "center"; var Sprite = laya.display.Sprite; var Bg = new Sprite(); Bg.loadImage("../laya/assets/bg_back.png"); Laya.stage.addChild(Bg); Bg.on(Laya.Event.MOUSE_DOWN, this, function(){ // 创建Video元素 var videoElement = Laya.Browser.cre...

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