大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0044 秒)
Laya_社区(616) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(70) Laya2.0_示例(68)
...BaseMaterial> 获取浅拷贝材质列表。 BaseRender sortingFudge : Number排序矫正值。BaseRenderPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By TerrainRender(owner:TerrainChunk) 创建一个新的 MeshRender 实例。 TerrainRender _nee...
来源: Laya2.0_api 发布时间: 20190513
...WebXRExperienceHelper.ts:36 framebufferScaleFactor framebufferScaleFactor: number = 1 Defined in laya/d3/WebXR/core/WebXRExperienceHelper.ts:40 multiview multiview: boolean = false Defined in laya/d3/WebXR/core/WebXRExperienceHelper.ts:39 stencil stencil: boolean = false Defined in laya/d3/WebXR/cor...
来源: 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
..."#232628"; this.demonstrate(); } private demonstrate(): void { for (var i: number = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } private onCallLater(): void { console.log("onCallLater triggered"); var text: Text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.colo...
来源: Laya2.0_示例 发布时间: 20260106
...Laya.Script { /* @prop {name: speed, tips: "速度", type: Number, default: 10} */ constructor() { super(); } onAwake() { console.log("场景渲染完成", this.speed); } } IDE中报错: [15:26:34] Working...
来源: Laya_社区 发布时间: 20191227
....05; } /***进度条数据改变回调***/ private function onChange(value:Number):void { trace("进度:" + Math.floor(value * 100) + "%"); } } } ```
来源: Laya2.0_文档 发布时间: 20210715
...: Sprite = new Sprite(); // 随机摆放文本 var text: Text; for (var i: number = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; text.y ...
来源: Laya2.0_示例 发布时间: 20260106
.../LayaUISampl ... annot read property 'start' of null this.sp.emitter.start(Number.MAX_VALUE); TypeError: Cannot read property 'start' of null at LayaUISample.__proto.onAssetsLoaded (http://www.xxx.com/LayaUISample.max.js:440) at EventHandler.__proto.run (http://www.xxx.com/LayaUISample.m...
来源: Laya_社区 发布时间: 20170522
...ya.Sprite3D.WORLDMATRIX, Laya.Shader3D.PERIOD_SPRITE] }; var customShader: number = Laya.Shader3D.nameKey.add("CustomShader"); var vs: string = "attribute vec4 a_Position;\n" + "uniform mat4 u_MvpMatrix;\n" + "uniform mat4 u_WorldMat;\n" + "attribute vec3 a_Normal;\n" + "varying vec3 v_Normal;\n" + ...
来源: Laya_社区 发布时间: 20180904
... 代码如下:public function Food(dishName:String, type:String, index:Number){ this.dishName = dishName; this.type = type; this.index = index; this.setPath(); this.on(Event.MOUSE_DOWN, Food, test); } private function test():void{ trace("test"); }求高手指点啊,有没有好的办法完成这...
来源: Laya_社区 发布时间: 20180407