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

大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0114 秒)

551. hitArea用法问题 [ 83%]

...则可正常关闭); 请指教!  // 写法一 let g:Laya.Graphics = new Laya.Graphics(); g.drawRect(this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+20,"#FF0000"); let hitA:Laya.HitArea = new Laya.HitArea(); hitA.hit = g; this.closeBtn.hitArea = hitA; // 写...

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

552. socket大型项目回调 [ 83%]

...console.warn = console.log; console.error = console.log; } this._message = new Message(); this._package = new Package(); this.socket = null; this.callbacks = {}; this.handlers = {}; // Map from request id to route this.routeMap = {}; this.heartbeatInterval = 0; this.heartbeatTimeout = 0; this.nextHe...

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

553. DOM元素-表单输入 [ 83%]

... Laya.Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#FFFFFF"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; var r...

来源: Laya_示例 发布时间: 20251130

554. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 83%]

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

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

555. 评论功能没用的吗? [ 83%]

...HY_LOADED, null, function (sprite) {       sprite.transform.position = new Laya.Vector3(0,0,-100); }); 在游戏中 调整模型的位置需要在场景加载完后进行操作! 2017-03-16 1 2 分享 微博 QZONE 微信 cuixueying 赞同来自: 如果长时间无人回复,你可以重新发...

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

556. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 83%]

...p;       // 百度地图命名空间 private var convertor:* = new BMap.Convertor(); // 坐标转换接口   private var mapDiv:*; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```java public function WatchPosition() { Laya.init(1, 1);   init();   ...

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

557. dialog设置了自定义的closeEffect之后,弹出框关闭之后黑色遮罩没有关闭 [ 83%]

...t之后,弹出框关闭之后黑色遮罩没有关闭 this.closeEffect = new Laya.Handler(this, function () { Laya.Tween.to(this, { x: Game.UIWidth }, 200, Laya.Ease.backIn, new Laya.Handler(this, function () { })); }); 2018-10-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

558. 如何动态获取image的宽高? [ 83%]

如何动态获取image的宽高? var thisp:Point=new Point((this.width*this.scaleX)/2,(this.height*this.scaleY)/2); //thisp=this.globalToLocal(this.localToGlobal(thisp)); //trace(thisp.x,thisp.y,"dddddddd") var tf:Matrix=new Matrix(); tf.translate(-thisp.x,-thisp.y); __jd+=jd; tf.rotate(__jd); t...

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

559. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 83%]

...pt //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建刚体碰撞器 ...

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

560. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 83%]

...pt //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建刚体碰撞器 ...

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