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

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

1. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 100%]

...来自: 我也发现这个问题了,在BaseMaterial构造函数里会把renderQueue的值设置成RENDERQUEUE_OPAQUE(不透明),但是我在自定义材质里也修改了this.renderQueue = BaseMaterial.RENDERQUEUE_TRANSPARENT; this.alphaTest = false;仍然没有透明效果,但是参考Lay...

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

2. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 78%]

...= function(x,y){ // this.x = x; // this.y = y; // this.visible =true; this.render(); this.mountain.pos(x,y); this.aeroboat.x = x; this.aeroboat.y = y; this.tower.x = x; this.tower.y = y; this.ball.x = x; this.ball.y = y; this.statue.x = x; this.statue.y = y; this.angel.x = x; this.angel.y = y; this....

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