大约有 732 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0088 秒)
Laya_社区(366) Laya_示例(77) Laya2.0_示例(64) Laya3.0_api(63) Laya2.0_api(58) laya_api(53) Laya2.0_文档(37) Laya3.0_文档(14)
...xture; (function() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#000000"; Stat.show(); wrapBounds = new Rectangle(-padding, -padding, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, onTextureLoaded)); })...
来源: Laya_示例 发布时间: 20251209
...ox 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Hierarchy Box ScaleBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx ...
来源: Laya3.0_api 发布时间: 20231115
...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...
来源: Laya3.0_api 发布时间: 20231115
...n",viewRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发现问题出现在TiledMap相关的代码里面 在TiledMap的destroy方法内 /** * 销毁地图 */ public function destroy():void { ....... //这里是销毁地图层的代...
来源: Laya_社区 发布时间: 20180503
...合自己需要的下拉框。 ```javascript package { import laya.display.Stage; import laya.display.Text; import laya.ui.ComboBox; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ComboBox { /***下边列表美术资源**/ private var skin:String = "../../../../res/ui/combobox.p...
来源: Laya2.0_文档 发布时间: 20210714
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY player rotation scaleX scaleY scene scrollRe...
来源: Laya3.0_api 发布时间: 20231115
...Sound; import laya.webgl.shapes.Ellipse; import laya.display.Stage; import laya.ui.Label; import laya.events.Event; import laya.utils.Browser; import laya.utils.Timer; import laya.display.Sprite; import laya.net.Loader; import laya.ui.Te...
来源: Laya_社区 发布时间: 20170921
...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var label:Label = new Label();//创建一个 Label 类的实例对象 label 。 label.font = "Arial";//设置 label 的...
来源: Laya3.0_api 发布时间: 20231115
... } onMouseDown() { this.point.x = Laya.stage.mouseX; this.point.y = Laya.stage.mouseX; //产生射线 this.camera.viewportPointToRay(this.point,this._ray); //拿到射线碰撞的物体 this.scene.physics...
来源: Laya_社区 发布时间: 20220506
...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize duration ended error filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY muted numChildren parent paused pivotX pivotY playbackRa...
来源: Laya3.0_api 发布时间: 20231115