大约有 55 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0054 秒)
...已创建完毕,此方法只执行一次 */ 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
...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
...已创建完毕,此方法只执行一次 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
...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
...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
...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
...1, this, this.animateFrameRateBased); Laya.stage.on("click", this, this.dispose); dispose() { Laya.timer.clear(this, this.animateFrameRateBased); } 当一个对象的生命周期结束时,记得清除其内部的Timer 3.3 获取显示对象边界的做法 在相对布局中,很经常需要正确...
来源: Laya3.0_文档 发布时间: 20241014
...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
...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
...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