大约有 919 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0043 秒)
Laya3.0_api(529) Laya_社区(122) Laya2.0_api(101) laya_api(89) Laya3.0_文档(36) Laya2.0_文档(26) Laya2.0_示例(10) Laya_示例(6)
...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
...meters path: string Returns void Static endSample endSample(path: string): number Defined in laya/utils/Performance.ts:36 Parameters path: string Returns number Static expoertFile expoertFile(path: string): any Defined in laya/utils/Performance.ts:43 Parameters path: string Returns any Static setPer...
来源: Laya3.0_api 发布时间: 20231102
... >> <prop name="scaleTime" tips="缩放使用的时间" type="number" default="100" group="常用" /> >> </ScaleButton> >> </uiComp> 其中 如何在代码里获取scaleTime的值,谢谢 PS:尝试过直接用对象默认属性可以取到,prop...
来源: Laya_社区 发布时间: 20180411
... 2018-06-22 18:23 @Laya_Aaron:报的错为 gamethirdScriptError expected Number;at requestAnimationFrame callback function • 2018-06-22 18:26 @Laya_Aaron:一个类就够了,是什么意思呢? Laya_Aaron • 2018-06-22 21:13 @: @:需要手动维护 Mr.余 • 2018-06-26 19:14 @Laya_A...
来源: Laya_社区 发布时间: 20180622
...sprite: Laya.Sprite; private spine: Laya.Spine2DRenderNode; private index: number = -1; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //加载Spine动画资源 Laya.loader.load("resources/boy/spineboy-pma.skel").then(() => ...
来源: Laya3.0_文档 发布时间: 20241014
...nLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; case 2: skin = "comp/btn_close.png"; break; case 3: skin = "comp/button.png"; break; ca...
来源: Laya_社区 发布时间: 20170607
...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
... }); 播放时大概 playAniBody(actionName: string, direction: number, completeFun: Function = null): void { this.aniBody.destroyChildren(); this.aniBody.clear(); let loopPlay: boolean = true; let key: string = actionName + "_" + Math.a...
来源: Laya_社区 发布时间: 20170615
...gl.WebGL; public class Physics_Physics_CollisionEvent { private var count: Number = 7; private var sensorCollider: CircleCollider; private var bodys: Array = []; private var touching: Array = []; public function Physics_CollisionEvent() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); ...
来源: Laya2.0_示例 发布时间: 20241119
...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