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

大约有 3,974 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0077 秒)

661. laya.physics.RigidBody [ 86%]

...e():void[override] RigidBodyProperty Detail_allowRotationpropertyprotected var _allowRotation:Boolean = true是否允许旋转,如果不希望刚体旋转,这设置为false_allowSleepproperty protected var _allowSleep:Boolean = true是否允许休眠,允许休眠能提高性能_angularDamping...

来源: Laya2.0_api 发布时间: 20190513

662. laya.d3.math.Viewport [ 86%]

...反变换一个三维向量。 ViewportProperty Detailheightpropertypublic var height:Number高度maxDepthproperty public var maxDepth:Number最大深度minDepthproperty public var minDepth:Number最小深度widthproperty public var width:Number宽度xproperty public var x:NumberX轴坐标yprope...

来源: Laya2.0_api 发布时间: 20190513

663. laya.device.motion.RotationInfo [ 86%]

...ined By  RotationInfo()RotationInfoProperty Detailabsolutepropertypublic var absolute:Boolean 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定的任意坐标系。 关于坐标系参见https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Orienta...

来源: laya_api 发布时间: 20170929

664. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 86%]

...属性值,可以使用局部变量来保存它: ```typescript foo() { var prop=this.target.prop; //使用prop this.process1(prop); this.process2(prop); this.process3(prop); } ``` ### 二、计时器 LayaAir提供两种计时器循环来执行代码块。 1. `Laya.timer.frameLoop`执行频率依...

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

665. 发现TimeLine的一些问题,像是BUG [ 86%]

...aya.utils.Stat; import laya.utils.TimeLine; public class AirDemo { private var sp1:Sprite; private var sp2:Sprite; private var sp3:Sprite; private var timeLine1:TimeLine; private var timeLine2:TimeLine; private var timeLine3:TimeLine; public function AirDemo() { //初始化引擎 Laya.init(600, 400)...

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

666. list只能显示一个图片 [ 86%]

...Box的ReanderType=Render,然后设置List的repeatX = 10,repeatY =1,List的var设为list1, 给List动态赋值 for (i=1;i<10;i++) { var item = {pic:{skin:'cards/'+i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 5...

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

667. 有震屏的算法吗 [ 86%]

... 2 个回复 laya21126 赞同来自: /** 是否震动中 */   protected var _isShake:Boolean;   /**    * 震动屏幕     * @param callBack    * @param times    * @param offset    * @param speed    *    */     public function stageShake(callBack:Function = null, times:uint = 2...

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

668. 通过PrimitiveMesh创建简单Mesh(ActionScript-3D基础(AS3)-LayaAir3D之模型和网格) [ 86%]

...模型 sprite3D = scene.addChild(new Sprite3D()) as Sprite3D; //正方体 var box:MeshSprite3D = sprite3D.addChild(new MeshSprite3D(PrimitiveMesh.createBox(0.5, 0.5, 0.5))) as MeshSprite3D; box.transform.position = new Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Vector3(0, 45, 0), false, false...

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

669. image.skin = base64 无效 [ 86%]

...() { Laya.init(1000, 900); testDraw(); } public function testDraw():void { var sp:Sprite; sp = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#ff0000"); Laya.stage.addChild(sp); sp.pos(100, 100); drawToc(sp); } private function drawToc(sp:Sprite):void { var canvas:HTMLCanvas= sp.drawToCanvas(10...

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

670. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 86%]

想绘制一个自适应得圆角矩形框,失败了,求解惑 var login = (function(_super){ function login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["a...

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