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

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

491. laya.ui.Dialog_API3.0 [ 77%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _scene3D _scene3D: any Inherited from Scene._scene3D Defined in laya/display/Scene.ts:28 _skinBaseUrl _skinBaseUrl: string Inher...

来源: Laya3.0_api 发布时间: 20231115

492. 为什么我获取不到鼠标滚轮的delta值,我查看laya.events.Event 里面没有这个属性 [ 77%]

...7-03-21 10:52 //我用TS但是里面没有delta属性 module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; import Rectangle = laya.maths.Rectangle export class Interaction_Scale { constructor() { La...

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

493. 在 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

494. 阴影太浓怎么变淡?看到说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

495. 物理碰撞器(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

496. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 77%]

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

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

497. 写消消乐游戏, 如何在tiledMap格子中添加精灵? [ 77%]

...s.tMap.createMap("res/map/map.json",viewRect); // 精灵 var sp = new Laya.Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#FF0000", "#0000FF", 1) sp.zOrder = 1000;     请问这里如何把精灵添加到地图中?看文档没看明白啊, 其他回答仿写都无效果. 2018-07-21 添加评论 ...

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

498. 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

499. 关于new Handler和handler.create的使用问题 [ 77%]

...运行时 找不到类的定义!这是为什么? 已上传 Demo 附件 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale TS项目使用matter.js库无智能提示 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivEle...

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

500. [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