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

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

181. ScrollRect设置会引起其他的UI资源无法正在显示 [ 67%]

...estViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotat...

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

182. Sprite-轴心点 [ 67%]

...or = "#232628"; this.createApes(); } private createApes(): void { var gap: number = 300; this.sp1 = new Sprite(); this.sp1.loadImage("res/apes/monkey2.png", 0, 0); this.sp1.pos((Laya.stage.width - gap) / 2, Laya.stage.height / 2); //设置轴心点为中心 this.sp1.pivot(55, 72); Laya.stage.addChil...

来源: Laya2.0_示例 发布时间: 20241118

183. 和原生Dom交互 · LayaAir3.0文档 · LAYABOX [ 67%]

...ntext || Laya.Browser.window.webkitAudioContext)(); //Stereo var channels: number = 2; // Create an empty two-second stereo buffer at the // sample rate of the AudioContext var frameCount: number = audioCtx.sampleRate * 2.0; var myArrayBuffer: any = audioCtx.createBuffer(2, frameCount, audioCtx.samp...

来源: Laya3.0_文档 发布时间: 20241014

184. 如何用Tween 给graphics.drawLine 设置缓动 [ 67%]

...Sprite; public class LayaAirDemo { private var sp:Sprite; private var endX:Number; private var endY:Number; public function LayaAirDemo() { Laya.init(600,600); sp=new Sprite(); Laya.stage.addChild(sp); endX=0; endY=0; sp.graphics.drawLine(10,10,endX,endY,'#FF0000'); Laya.timer.frameLoop(1,this,onFra...

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

185. 请问这是原因? [ 67%]

... 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

186. Config3D的介绍(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 67%]

...剪 | Boolean | false | | octreeInitialSize | 八叉树初始化尺寸 | Number | 64.0 | | octreeInitialCenter | 八叉树初始化中心 | Vector3 | (0,0,0) | | octreeMinNodeSize | 八叉树最小尺寸 | Number | 2.0 | | octreeLooseness | 八叉树松散值 | Number | 1.25 | | debugFrustumCulling ...

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

187. Config3D的介绍(JavaScript-3D基础(JS)-快速开始一个LayaAir3D项目) [ 67%]

...剪 | Boolean | false | | octreeInitialSize | 八叉树初始化尺寸 | Number | 64.0 | | octreeInitialCenter | 八叉树初始化中心 | Vector3 | (0,0,0) | | octreeMinNodeSize | 八叉树最小尺寸 | Number | 2.0 | | octreeLooseness | 八叉树松散值 | Number | 1.25 | | debugFrustumCulling ...

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

188. 性能测试-卡通人物2 [ 67%]

...ite = Laya.Sprite; export class PerformanceTest_Cartoon2 { private amount: number = 500; private character1: Array = [ "../../res/cartoon2/yd-6_01.png", "../../res/cartoon2/yd-6_02.png", "../../res/cartoon2/yd-6_03.png", "../../res/cartoon2/yd-6_04.png", "../../res/cartoon2/yd-6_05.png", "../../res/...

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

189. Config3D的介绍(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 66%]

...剪 | Boolean | false | | octreeInitialSize | 八叉树初始化尺寸 | Number | 64.0 | | octreeInitialCenter | 八叉树初始化中心 | Vector3 | (0,0,0) | | octreeMinNodeSize | 八叉树最小尺寸 | Number | 2.0 | | octreeLooseness | 八叉树松散值 | Number | 1.25 | | debugFrustumCulling ...

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

190. UI-Tab [ 66%]

...onSelect); Laya.stage.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } } new laya.UI_Tab();package { import laya.display.Stage; import laya.ui.Tab; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_T...

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