大约有 2,682 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0082 秒)
Laya_社区(2157) Laya2.0_文档(119) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(51)
...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
扇形遮罩问题。 为一个矩形设置扇形遮罩 代码: 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
...是格子 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
...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
...题 我的代码是这样子的: 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
...下面是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
...} render: { sprite: { texture: texture, xOffset: 20.5, yOffset: 28 ...
来源: Laya_社区 发布时间: 20170102
...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
...我将地面 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
... 我试着用代码实现物理效果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