大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0147 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
... = 440; //串盒子的高 var boxHeight = 500; //串盒子 this.chuanBox = new Laya.Rectangle(Laya.stage.width - boxWidth >> 1, Laya.stage.height - boxHeight - 10, boxWidth, boxHeight); //画出盒子 Laya.stage.graphics.drawRect( this.chuanBox.x, this.chuanBox.y, this.chuanBox.width, this.chu...
来源: Laya_社区 发布时间: 20181026
...要回复问题请先登录 发起人 150*****483 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 请问在layaIDE里,怎么调用微信小程序API laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObje...
来源: Laya_社区 发布时间: 20181210
...laya中用这个方法获取不到材质 var rootSkinMesh = scene.addChild(new Laya.Sprite3D()); var skinMesh0 = rootSkinMesh.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("3d/LayaScene_/Library/unity default resources-Cube.lm"))); var skinMesh1 = rootSkinMesh.addChild(new Laya.MeshSprite3D(Laya.Mes...
来源: Laya_社区 发布时间: 20170223
... //这段注释掉,imgMask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya.T...
来源: Laya_社区 发布时间: 20190722
... Sprite = Laya.Sprite, Event = Laya.Event; let w = 200, h = 300; this.sp = new Sprite(); Laya.stage.addChild(this.sp); this.sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.sp.size(w, h); this.sp.pivot(w / 2, h / 2); this.sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.sp.on(Event.MOUSE_D...
来源: Laya2.0_示例 发布时间: 20260303
...ly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya.MeshColliderShape(); bulletShape.mesh = bullet....
来源: Laya_社区 发布时间: 20190308
...去对象,为什么对象的属性没了 var rewardVo:ActivityRewardVo = new ActivityRewardVo; rewardVo.rewardID = GameInstance.StandardList[rollNumbers[i]-1].id; rewardVo.rewardCount = GameInstance.StandardList[rollNumbers[i]-1].count; trace(rewardVo); this.showArr.push(rewardVo); trace(showArr) ...
来源: Laya_社区 发布时间: 20171215
...tructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.conn...
来源: Laya_社区 发布时间: 20171129
...spriteLight.getComponent(Laya.SpriteLight2D); spritelightComponent.color = new Laya.Color(1, 1, 1); spritelightComponent.intensity = 0.5; let tex = Laya.loader.getRes("resources/spritelight.png"); spritelightComponent.spriteTexture = tex; } // 配置方向光 setDirectLight(): void { let directlitht...
来源: Laya3.0_文档 发布时间: 20251010
...ate tMap:Laya.TiledMap; constructor() { //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); //创建TiledMap地图 this.tMap.createMap("res/TiledMap/orthogonal-outside.json",viewRect,null); //初始化舞...
来源: Laya_社区 发布时间: 20180203