大约有 146 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0030 秒)
...age.bgColor = "#232628"; this.setup(); } private setup(): void { var vGap: number = 100; this.button1 = this.createButton("点我3秒之后 alpha - 0.5"); this.button1.x = (Laya.stage.width - this.button1.width) / 2; this.button1.y = (Laya.stage.height - this.button1.height - vGap) / 2; Laya.stage.a...
来源: Laya_示例 发布时间: 20241117
...onSpriteClick); } private onSpriteClick(e: Event): void { var randomAngle: number = Math.random() * 180; //发送自定义事件 this.sp.event(Interaction_CustomEvent.ROTATE, [randomAngle]); } // 触发自定义的rotate事件 private onRotate(newAngle: number): void { Tween.to(this.sp, { "rotation"...
来源: Laya2.0_示例 发布时间: 20241117
...age.bgColor = "#232628"; this.setup(); } private setup(): void { var vGap: number = 100; this.button1 = this.createButton("点我3秒之后 alpha - 0.5"); this.button1.x = (Laya.stage.width - this.button1.width) / 2; this.button1.y = (Laya.stage.height - this.button1.height - vGap) / 2; Laya.stage.a...
来源: Laya2.0_示例 发布时间: 20241117
...c var moveRanges: Array = []; public function onUpdate(): void { var seed: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Ha...
来源: Laya2.0_文档 发布时间: 20210714
... point.x-500; var deltaY:int = point.x-500; //计算旋转角度 var angle:Number = Math.atan2(deltaX,deltaY)*180/Math.PI; //在鼠标的位置生成一个圆来测试本地坐标 flagCircle.drawCircle(0,0,50,"#000000") flag.graphics = flagCircle; flag.pos(deltaX,deltaY); //添加舞台 sprite.addCh...
来源: Laya_社区 发布时间: 20190515
...果的次数和时间,即缓动效果的幅度。 static elasticOut(t: number, b: number, c: number, d: number, a?: number, p?: number): number; 我看这个是有参数可以控制的,但是在tween中怎么使用这些参数? cuixueying • 2016-09-22 22:10 /** * 以较快速度开始运动...
来源: Laya_社区 发布时间: 20160913
... private showDragRegion(): void { //拖动限制区域 var dragWidthLimit: number = 350; var dragHeightLimit: number = 200; this.dragRegion = new Rectangle(Laya.stage.width - dragWidthLimit >> 1, Laya.stage.height - dragHeightLimit >> 1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 L...
来源: Laya_示例 发布时间: 20241117
... private showDragRegion(): void { //拖动限制区域 var dragWidthLimit: number = 350; var dragHeightLimit: number = 200; this.dragRegion = new Rectangle(Laya.stage.width - dragWidthLimit >> 1, Laya.stage.height - dragHeightLimit >> 1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 L...
来源: Laya2.0_示例 发布时间: 20241117
...er = Laya.Render; export class Physics_NewtonsCradle { private stageWidth: number = 800; private stageHeight: number = 600; private Matter: any = Browser.window.Matter; private LayaRender: any = Browser.window.LayaRender; private mouseConstraint: any; private engine: any; constructor() { // 不支...
来源: Laya_示例 发布时间: 20241117
...st赋值,先获得一个数据源数组 var arr: Array = []; for (var i: number = 0; i < 100; i++) { arr.push({ label: "item " + i, clip: i % 9 }); } //给list赋值更改list的显示 this.list.array = arr; //还可以自定义list渲染方式,可以打开下面注释看一下效果 //list.rend...
来源: Laya_示例 发布时间: 20241117