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

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

221. transform的旋转和移动是异步方法吗? [ 83%]

...ransform.pivot.x + 0,                 cube.transform.pivot.y - height/2,                 cube.transform.pivot.z - width/2); // 旋转             cube.transform.rotate(new Vector3(Math.PI/2*3,0,0));             var temp:Number = width;             w...

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

222. 多种碰撞器形状(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 83%]

....png)(图5) ```typescript var raidius:int = Math.random() * 0.2 + 0.2; var height:int = Math.random() * 0.5 + 0.8; //创建胶囊MeshSprite3D var capsule:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createCapsule(raidius, height))) as MeshSprite3D; //创建刚体碰撞器 var rigidBo...

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

223. 微信小游戏想使用截图功能是使用canvasToTempFilePath()吗 [ 83%]

...s ImageData { public data: Uint8ClampedArray; public width: number; public height: number; public constructor(width: number, height: number) { this.width = width; this.height = height; this.data = new Uint8ClampedArray(width * height * 4); } } window.ImageData = ImageData; // 报错的话改成windo...

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

224. 添加了MouseJoint没有效果 [ 83%]

...opePartTexture; ropePart.pos(48*vw,10*vh); ropePart.width = 4*vw; ropePart.height = 10*vh; let boxCollider = new laya.physics.BoxCollider(); boxCollider.width = ropePart.width; boxCollider.height = ropePart.height; ropePart.addComponentIntance(boxCollider); ropePart.addComponent(laya.physics.RigidBo...

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

225. 多种碰撞器形状(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 83%]

...g)(图5) ```typescript var raidius:number = Math.random() * 0.2 + 0.2; var height:number = Math.random() * 0.5 + 0.8; //创建胶囊MeshSprite3D var capsule = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createCapsule(raidius, height))) as Laya.MeshSprite3D; //创建刚体碰撞器 var ri...

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

226. laya.ani.GraphicsAni_API3.0 [ 82%]

...回收 Returns void clipRect clipRect(x: number, y: number, width: number, height: number): ClipRectCmd Inherited from Graphics.clipRect Defined in laya/display/Graphics.ts:304 设置剪裁区域,超出剪裁区域的坐标不显示。 Parameters x: number X 轴偏移量。 y: number Y 轴偏移...

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

227. laya.utils.HTMLChar [ 82%]

... : String 字符。HTMLChar  charNum : Number 字符数量。HTMLChar  height : Number 高度。 HTMLChar  isWord : Boolean 表示是否是正常单词(英文|.|数字)。HTMLChar  style : CSSStyle CSS 样式。HTMLChar  width : Number 宽度。 HTMLChar  x : Number 此对象存储的 X ...

来源: laya_api 发布时间: 20170422

228. laya.ani.bone.SkinSlotDisplayData_API3.0 [ 82%]

...数据 Hierarchy SkinSlotDisplayData Index Properties attachmentName bones height lengths name texture transform triangles type uvs verLen vertices weights width Methods createTexture destory Properties attachmentName attachmentName: string Defined in laya/ani/bone/SkinSlotDisplayData.ts:12 附件...

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

229. 性能测试-骨骼 [ 82%]

...unction init() { mSpacingX = Browser.width / colCount; mSpacingY = Browser.height / rowCount; Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); mTexturePath = "../../res/skeleton/" + fileName + "/" + fileName + ".png"; mAniPath = "../../res/skeleton/" + fileName + "/" + fileName + ".sk";...

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

230. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 82%]

..."complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.height/2-logo.height/2); })); 2018-10-10 0 1 分享 微博 QZONE 微信 hj 赞同来自: 你用这个方法的时候,鼠标在这停留一秒钟...

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