大约有 3,979 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0078 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
... */ __proto.loop=function(){ var point=this._parent.getMousePoint(); var mouseX=point.x; var mouseY=point.y; var offsetX=mouseX-this._lastX; var offsetY=mouseY...
来源: Laya_社区 发布时间: 20180720
...反变换一个三维向量。 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
...ined By RotationInfo()RotationInfoProperty Detailabsolutepropertypublic var absolute:Boolean 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定的任意坐标系。 关于坐标系参见https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Orienta...
来源: laya_api 发布时间: 20170929
...属性值,可以使用局部变量来保存它: ```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
...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
...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
... 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
...模型 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
...() { 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
想绘制一个自适应得圆角矩形框,失败了,求解惑 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