• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 55 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0054 秒)

41. 基础文本 · LayaAir3.0文档 · LAYABOX [ 45%]

...已创建完毕,此方法只执行一次 */ onAwake(): void { this.txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txt.size(500, 30); //大小 this.txt.pivot(this.txt.width/2, this.txt.height/2); //轴心点 this.txt.text = "大家好,欢迎各位开发者使用...

来源: Laya3.0_文档 发布时间: 20241014

42. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 44%]

...s').height = Laya.stage.height; //主域往子域透传消息 __JS__('wx').postMessage({type:"resizeShared",url:"",data:{width:Laya.stage.width,height:Laya.stage.height,matrix:Laya.stage._canvasTransform},isLoad:false}); }); } //激活资源版本控制 beginLoad(); } private function beginLoad():vo...

来源: Laya_社区 发布时间: 20180525

43. 多选框组件 · LayaAir3.0文档 · LAYABOX [ 42%]

...已创建完毕,此方法只执行一次 onAwake(): void { this.checkbox.pos(300, 300); // this.checkbox.selected = true; this.checkbox.label = "多选框"; this.checkbox.labelBold = true; this.checkbox.labelSize = 30; this.checkbox.labelColors = "#0100ff, #16fa0e, #ff0000"; //各状态下的文...

来源: Laya3.0_文档 发布时间: 20241014

44. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 41%]

...lor='#d26ae3'>HTML文本</span>"; htmlDiv.innerHTML=html; htmlDiv.pos(50,200); var txt:String = ""; var tTxt:String; var tHTMLElement:HTMLElement; for(var i:int = 0,n:int = htmlDiv._childs.length;i < n;i++) { tHTMLElement = htmlDiv.getChildAt(i) as HTMLElement; if(tHTMLElement) { tTxt= t...

来源: Laya_社区 发布时间: 20161027

45. 有关Laya3D碰撞检测疑问 [ 41%]

...men/texture/layabox.png"); box.meshRender.material = boxMat; box.transform.position = new Laya.Vector3(0.3, 0.5, 0.5); box.transform.rotate(new Laya.Vector3(0, 30, 0), false, false); let boxCollider1:Laya.BoxCollider = box.addComponent(Laya.BoxCollider) as Laya.BoxCollider; boxCollider1.setFromBound...

来源: Laya_社区 发布时间: 20180820

46. laya.d3.webxr.core.WebXRInput_API3.0 [ 37%]

...ventDispatcher WebXRInput Index Constructors constructor Properties _lastXRPose gamepadAxis gamepadButton handness lastXRPose position ray rotation EVENT_FRAMEUPDATA_WEBXRINPUT HANDNESS_LEFT HANDNESS_RIGHT Methods addAxisEvent addButtonEvent destroy event hasListener off offAll offAllCaller offAxisE...

来源: Laya3.0_api 发布时间: 20231115

47. 2D性能优化 · LayaAir3.0文档 · LAYABOX [ 35%]

...1, this, this.animateFrameRateBased); Laya.stage.on("click", this, this.dispose); dispose() { Laya.timer.clear(this, this.animateFrameRateBased); } 当一个对象的生命周期结束时,记得清除其内部的Timer 3.3 获取显示对象边界的做法 在相对布局中,很经常需要正确...

来源: Laya3.0_文档 发布时间: 20241014

48. laya.display.Stage_API3.0 [ 33%]

...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render renderToNative repaint replaceChild runCallLater scale setChildIndex setGraphics setScreenSize setScreenSizeForScene setSelfBounds set_a...

来源: Laya3.0_api 发布时间: 20231115

49. laya.media.SoundNode_API3.0 [ 33%]

...rialize onAwake onDestroy onDisable onEnable once parentRepaint pivot play pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_height set_scaleX set_scaleY...

来源: Laya3.0_api 发布时间: 20231115

50. laya.ui.DialogManager_API3.0 [ 33%]

...rialize onAwake onDestroy onDisable onEnable once open parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setLockView setSelfBounds set_anchorX set_anchorY set_height set_scale...

来源: Laya3.0_api 发布时间: 20231115