大约有 1,569 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0051 秒)
Laya_社区(678) Laya3.0_api(636) Laya2.0_api(70) laya_api(47) Laya2.0_文档(47) Laya3.0_文档(36) Laya2.0_示例(29) Laya_示例(26)
...tils.intersectsRayAndPlaneRD(ray, plane, distance)) { out = Vector3._ZERO; return false; } Vector3.scale(ray.direction, distance, CollisionUtils._tempV30); Vector3.add(ray.origin, CollisionUtils._tempV30, CollisionUtils._tempV31); out = CollisionUtils._tempV31; return true; }这个函数里面 dist...
来源: Laya_社区 发布时间: 20191012
..., 50); txt.fontSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); return txt; } } new Text_Overflow();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Overflow { constructor() { // 不支持WebGL时...
来源: Laya2.0_示例 发布时间: 20241120
...formatStr == "{") continue; arr2[i] = String(arr2[i]); if(arr2[i].indexOf("return") !=-1) continue; if(arr2[i].indexOf("class ") !=-1) continue; if(arr2[i].indexOf("super(") !=-1) continue; if(arr2[i].indexOf("public constructor") !=-1) continue; if(arr2[i].indexOf("else") !=-1) continue; if(arr2[i]...
来源: Laya_社区 发布时间: 20190613
...e.bgColor="#EEFFCC"; var bg = new BackGround(); Laya.stage.addChild(bg); } return Game; }()); var gameInstance = new Game();BackGround.jsvar BackGround = (function (_super) { function BackGround() { BackGround.__super.call(this); //创建背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景...
来源: Laya_社区 发布时间: 20170222
...pineAni();//在处理失败资源会报错 return; } if (this.assetManager.hasErrors()) { this.event(Laya.Event.ERROR, "load failed:" + this.assetManager.getErrors()); ...
来源: Laya_社区 发布时间: 20220317
... { height?: number; width: number } Optional height?: number width: number Returns number[] recover recover(): void Defined in laya/display/cmd/DrawLineCmd.ts:56 回收到对象池 Returns void Globals "laya/display/cmd/DrawLineCmd" DrawLineCmd fromX fromY lineColor lineWidth percent toX toY ID getB...
来源: Laya3.0_api 发布时间: 20231115
...{"type":"Image","props":{"y":0,"x":0,"skin":"poker/bottom_slider.png"}}]}; return testUI; })(Dialog);我定义了一个对象来使用它 var SelectColorDialog = (function () { function selectColorDialog() { SelectColorDialog.super(this); this.name = 'SelectColorDialog'; Laya.stage.addChild(this); t...
来源: Laya_社区 发布时间: 20180325
...btn1.on(Laya.Event.CLICK,this,()=>{ if(!_pause)return; sound.pause(); _pause = false }) btn2.on(Laya.Event.CLICK,this,()=>{ if(_pause)return ...
来源: Laya_社区 发布时间: 20200922
... { height?: number; width: number } Optional height?: number width: number Returns number[] recover recover(): void Defined in laya/display/cmd/DrawCircleCmd.ts:57 回收到对象池 Returns void Globals "laya/display/cmd/DrawCircleCmd" DrawCircleCmd fillColor lineColor lineWidth percent radius x y ...
来源: Laya3.0_api 发布时间: 20231115
... { height?: number; width: number } Optional height?: number width: number Returns number[] recover recover(): void Defined in laya/display/cmd/DrawPathCmd.ts:46 回收到对象池 Returns void Globals "laya/display/cmd/DrawPathCmd" DrawPathCmd brush paths pen x y ID getBoundPoints recover _tempPoin...
来源: Laya3.0_api 发布时间: 20231115