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

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

481. layabox支持rgba颜色吗 [ 77%]

...abox支持rgba颜色吗 layabox支持rgba颜色吗?我试了一下new Laya.Sprite().graphics.drawCircle(0, 0, 4, 'rgba(0,0,0,0.1)', '#fff', 3),页面显示是的填充色是黑色 2017-02-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

482. 扇形遮罩问题。 [ 77%]

扇形遮罩问题。 为一个矩形设置扇形遮罩 代码: var sp:Sprite = new Sprite(); Laya.stage.addChild(sp); sp.alpha = 0.8; sp.graphics.drawRect(50,50,50,50,"#ff0000"); var sp1:Sprite = new Sprite(); sp1.alpha = 0.5; //Laya.stage.addChild(sp1); //画扇形 当这个扇形画的角度...

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

483. 在 tiledmap 插入一个精灵在上面 [ 77%]

...是格子 class GameInfo{ private tiledMap: Laya.TiledMap; private sp:Laya.Sprite;   constructor(){   console.info("start");   this.init(); } init():void{   Laya.init(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLA...

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

484. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 77%]

...1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya....

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

485. 【求助】关于Cannot read property 'visible' of undefined问题 [ 77%]

...题 我的代码是这样子的: private function showFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); this.index = 0; foodsList = new Array(); foodsList.push(new Food("菜品1", "1", 0)); foodsList.push(new Food("菜品2", "2", 1)); foodsList.push(new Food("菜品3", "3",...

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

486. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 77%]

...下面是processTimer类 package uiLogic.core {     import laya.display.Sprite;     import laya.maths.Size;     import laya.ui.Image;          public class ProcessTimer extends Sprite     {         public var img:Image;         public var maskSp:Sprite;         pu...

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

487. matter.js的文档查看 [ 77%]

...} render:                 {                     sprite:                     {                         texture: texture,                         xOffset: 20.5,                         yOffset: 28      ...

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

488. laya2.3图集含空白裁切后,锚点旋转bug,demo重现 [ 77%]

...ya.Texture = Laya.loader.getRes("test2.png");         var sp3:Laya.Sprite = new Laya.Sprite();         sp3.texture = Laya.Texture.create(tx3,0,0,315,315,134,134,582,582);          sp3.pivot(315/2,315/2);//锚点使用实际裁切后的中心反而是对的,这按理是bug...

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

489. 阴影太浓怎么变淡?看到说directlight.ambientColor,但这ambientColor属性没有 [ 77%]

...我将地面 var mat: Laya.StandardMaterial = (this.floor.getChildAt(0) as Sprite3D).meshRender.material as Laya.StandardMaterial; mat.ambientColor = new Vector3(0.5,0.5,0.5); 这样确实阴影变淡了,可地面也变色了。。。怎么办?我只要阴影变淡,不想其它的变色 2018-0...

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

490. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 77%]

...   我试着用代码实现物理效果class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.Box...

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