大约有 770 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
...有个BitMask封装 @property({type: BitMask(LogLevel)}) public logLevel: number = LogLevel.All;//日志等级 这样在CocosCreator Editor的Inpector上就可以多选了。
来源: Laya_社区 发布时间: 20251120
...rticle, Stat.toogle_msaa] Defined in laya/utils/Stat.ts:95 Static FPS FPS: number = 0 Defined in laya/utils/Stat.ts:102 每秒帧数。 Static RenderFuncToggle RenderFuncToggle: Array<StatToggleUIParams> = [Stat.toogle_Opaque, Stat.toogle_Transparent, Stat.toogle_CameraCMD, Stat.toogle_Skin, S...
来源: Laya3.0_api 发布时间: 20231115
...需要定义更多的细节,例如(原有写法): uniformMap:{ u_Number: { type: Float, default:0, alias:"数字", range:[0,100], fractionDigits: 2 } }, 如果细节较多,为了uniformMap的简洁性,可以将这些细节移到styles: uniformMap:{ u_Number: { type: Float, default:0 } ...
来源: Laya3.0_文档 发布时间: 20251010
...激活。 Returns boolean 在场景中是否激活。 alpha get alpha(): number set alpha(value: number): void Inherited from Text.alpha Defined in laya/display/Sprite.ts:1026 透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。 Returns number Inherited from T...
来源: Laya3.0_api 发布时间: 20231115
... @regClass() export class UI_Button extends Laya.Script { private COLUMNS: number = 2; private BUTTON_WIDTH: number = 147; private BUTTON_HEIGHT: number = 165 / 3; private HORIZONTAL_SPACING: number = 200; private VERTICAL_SPACING: number = 100; private xOffset: number; private yOffset: number; priv...
来源: Laya3.0_文档 发布时间: 20251010
... class Main extends Laya.Script { private tMap:Laya.TiledMap; private MapX:number = 0; private MapY:number = 0; private mLastMouseX:number; private mLastMouseY:number; onEnable() { //创建地图对象 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangl...
来源: Laya3.0_文档 发布时间: 20251010
...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
...lecte); } // 根据选择tab的索引切换页面 private onSelecte(index: number): void { //切换ViewStack子页面 this.viewstack.selectedIndex = index; } } 最终的效果如动图1-7所示: (动图1-7) 2. ViewStack属性 ViewStack的特有属性如下: (图2-1) 属性 说明 背景...
来源: Laya3.0_文档 发布时间: 20251010
...ssBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: number): void { // 控制台打印输出进度 console.log("进度:" + Math.floor(value * 100) + "%"); } } 示例效果如下: (动图2-1) ProgressBar的其他属性也可以通过代码来设置,上述示例演示...
来源: Laya3.0_文档 发布时间: 20251010
...am的接口, interface IExtendLib { // 初始化Steam initializeSteam(): number; // 返回1表示成功,0表示失败 } export const extendLib: IExtendLib = Laya.importNative("steam_demo.dll"); 然后在Scene2D上新建一个组件脚本,当点击按钮时,完成初始化。 import { extendL...
来源: Laya3.0_文档 发布时间: 20251010