大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0113 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...tton}*/ // public actionButtonType; constructor() { super(); } onEnable(): void { } onDisable(): void { } } 2018-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: https://ldc2.layabox.c...
来源: Laya_社区 发布时间: 20181215
...new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>; all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 ...
来源: Laya_社区 发布时间: 20180604
..._SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var terminalX: number = 200; var characterA: Sprite = this.createCharacter("res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB: Sprite = this.createCharacter("res/cartoonChara...
来源: Laya2.0_示例 发布时间: 20260303
... private Activity activity = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULL...
来源: Laya_社区 发布时间: 20170517
...Methods Static setResolution setResolution(width: number, height: number): void Defined in Config3D.ts:59 设置分辨率大小(并不是实际渲染分辨率) Parameters width: number height: number Returns void Globals "Config3D" Config3D BVH_Min_Build_nums BVH_limit_size BVH_max_SpatialCount ...
来源: Laya3.0_api 发布时间: 20231115
...节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let opendata = new Laya.OpenDataContextView(); Laya.stage.addChild(opendata); opendata.pos(100,100); opendata.size(500,500); } } 成功创建开放数据域视图节点后,我们只是完成了引擎层面要完成...
来源: Laya3.0_文档 发布时间: 20251010
... as Laya.Scene; scene.once(Laya.Event.HIERARCHY_LOADED, this, function (): void { var camera:Laya.Camera = scene.getChildByName("Scenes").getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); var skyBox:Laya.SkyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.Texture...
来源: Laya_示例 发布时间: 20260303
... _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域透传的数据 if(MiniAdpter.isZiYu && MiniAdpter.isPosMsgYu) { __JS__('wx').onMessage(function(message:Object):void{ trace(message); if(message['isLoad'] == "filedata") { MiniFileMgr.ziyuFileDat...
来源: Laya_社区 发布时间: 20180525
...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { // 该文本自动适应尺寸 var autoSizeText: Text = this.createSampleText(); autoSizeText.overflow = Text.VISIBLE; autoSizeText.y = 50; // 该文本被限制了宽度 var widthLimitText: Text = this.createSampleTex...
来源: Laya_示例 发布时间: 20260303
...) this.onUrlChangeHandler(url); } protected onUrlChangeHandler(url:string):void { if(this.szurl!="") this.disp() this.szurl=url; if(url==null){ this.graphics.clear(); }else{ this.skin=url; } } public disp(){ this.skin=""; if(this.szurl){ Laya.loader.clearRes(this.szurl,true); //***2.0这里...
来源: Laya_社区 发布时间: 20181201