大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0110 秒)
Laya_社区(5232) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(101) Laya2.0_api(67) laya_api(64)
...自: private setup(json :any): void { var list = new List(); list.itemRender = Item; list.repeatX = 3; list.repeatY = 3; list.x = 50; list.y = 100; list.spaceX = -50;...
来源: Laya_社区 发布时间: 20210122
var text = new Laya.Text();为什么text.pivot(200,200);不起作用 var text = new Laya.Text(); text.pivot(text.width / 2, text.height / 2); text.pivot(200,200); console.log(text.pivotX, text.pivotY); 打印显示都是0 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180322
....bgColor = "#232628"; this.createSensor(); } createSensor() { let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = ground.addComponent(Laya.ChainCollider); chai...
来源: Laya2.0_示例 发布时间: 20251130
... /**创建位图方法**/ function createImg(w,h){ var Img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); //加载显示图片 Img.loadImage("res/tt.png",w,h); return Img; } /**创建红色滤镜位图方法**/ function creteRedFilter(){ //颜色滤镜矩阵,红色 va...
来源: Laya_社区 发布时间: 20170811
... private createMap(): void { this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/t2.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), null, new Point(1600, 800)); }...
来源: Laya_社区 发布时间: 20201230
...es/threeDimen/scene/particle/Example_01.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) ; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SC...
来源: Laya_示例 发布时间: 20251130
new Sprite().blendMode模式选择问题 API上描述目前只支持"lighter",可是我看官方的新手引导的引擎示例写的是另一种模式,在论坛搜了一下,JS文件实际是有好几种模式,后续升级文档能否将几种都注明清楚,对新手很不友好 2018-03-1...
来源: Laya_社区 发布时间: 20180316
...动,旋转。 ```typescript //移动摄像机 camera.transform.translate(new Vector3(0, 3, 3)); //旋转摄像机 camera.transform.rotate(new Vector3(-30, 0, 0), true, false); ``` 关于旋转,在Transform3D中提供了两种旋转接口,一种是角度/弧度旋转`rotate`,还一种是欧...
来源: Laya2.0_文档 发布时间: 20210714
...a.wx.mini.MiniAdpter; public class LayaSample { public var sprite:Sprite = new Sprite(); public function LayaSample() { //初始化引擎 MiniAdpter.init(); Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#232628"; //画一个圆 sprite = new Spri...
来源: Laya_社区 发布时间: 20190515
.../bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg2); bg2.scale(3, 3); //创建mask maskSp = new Sprite(); maskSp.loadImage...
来源: Laya_示例 发布时间: 20251130