大约有 350 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0051 秒)
Laya_社区(97) Laya_示例(78) Laya2.0_示例(68) Laya3.0_api(55) Laya2.0_文档(35) Laya3.0_文档(6) laya_api(6) Laya2.0_api(5)
...ssBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar(); ```
来源: Laya2.0_文档 发布时间: 20210715
...则会穿透house private var curTarget: Sprite; private var preMovementX: Number = 0; private var preMovementY: Number = 0; public function Physics_Physics_CollisionFiltering() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); L...
来源: Laya2.0_示例 发布时间: 20241118
...rivate _blood_area: Area = new AreaEntity( 100, 20 ); public _blood_value: number; /** 魔鬼 */ private _demon_ani: Laya.Animation; // toset: private _demon_area: Area = new AreaEntity( 100, 100); /** 靶心,参照物是魔鬼 */ private _target_ani: Laya.Animation; // toset: private _target_...
来源: Laya_社区 发布时间: 20180515
...tate1:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private scaleDelta:number = 0; private scaleValue:number = 0; private layaMonkey_clone1:Laya.Sprite3D; private layaMonkey_clone2:Laya.Sprite3D; private layaMonkey_clone3:Laya.Sprite3D; ...
来源: Laya_社区 发布时间: 20190509
...({ output: { }, numWorkers:1,//Amount of workers to spawn. Defaults to the number of CPUs minus 1 sourcemap: false })*/ ] }).then(bundle => { return bundle.write({ file: workSpaceDir + '/bin/js/bundle.js', format: 'iife', name: 'laya', sourcemap: false }); }).catch(err=>{ console.log(err); }) ...
来源: Laya_社区 发布时间: 20200918
...BoxCollider)"; //指定精灵的层 sprite3d1.layer = Laya.Layer.getLayerByNumber(10); sprite3d2.layer = Laya.Layer.getLayerByNumber(10); sprite3d3.layer = Laya.Layer.getLayerByNumber(13); sprite3d4.layer = Laya.Layer.getLayerByNumber(13); /** * 给精灵添加碰撞器组件 * BoxCollider : 盒型...
来源: Laya_示例 发布时间: 20241118
...SessionManager.ts:26 Current XR XRFrame currentTimestamp currentTimestamp: number = -1 Defined in laya/d3/WebXR/core/WebXRSessionManager.ts:28 WebXR timestamp updated every frame defaultHeightCompensation defaultHeightCompensation: number = 1.7 Defined in laya/d3/WebXR/core/WebXRSessionManager.ts:30...
来源: Laya3.0_api 发布时间: 20231115
...eateLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor...
来源: Laya2.0_文档 发布时间: 20210715
....05; } /***进度条数据改变回调***/ private function onChange(value:Number):void { trace("进度:" + Math.floor(value * 100) + "%"); } } } ```
来源: Laya2.0_文档 发布时间: 20210715
...。设置为true,对性能有一定影响。 canvasDegree canvasDegree: number = 0 Defined in laya/display/Stage.ts:126 画布的旋转角度。 canvasRotation canvasRotation: boolean = false Defined in laya/display/Stage.ts:124 画布是否发生翻转。 designHeight designHeight: number = 0 Def...
来源: Laya3.0_api 发布时间: 20231115