大约有 4,914 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0212 秒)
...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。SpriteProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties PropertyDefined By _anchorX : Number = NaNX锚点,值为0-1,设置anchorX值最终通过pivotX值来...
来源: Laya2.0_api 发布时间: 20190513
...度。 bg.height = 250;//设置 bg 的高度。 this.addChild(bg);//将 bg 添加到显示列表。 var image = new laya.ui.Image("resource/ui/image.png");//新建一个 Image 类的实例 image 。 this.addChild(image);//将 image 添加到显示列表。 var button = new laya.ui.Button("resource/u...
来源: Laya3.0_api 发布时间: 20231115
...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。SpriteProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties PropertyDefined By _anchorX : Number = NaNX锚点,值为0-1,设置anchorX值最终通过pivotX值来...
来源: Laya2.0_api 发布时间: 20190513
...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。SpriteProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties PropertyDefined By _anchorX : Number = NaNX锚点,值为0-1,设置anchorX值最终通过pivotX值来...
来源: Laya2.0_api 发布时间: 20190513
...de: T): T Inherited from Node.addChild Defined in laya/display/Node.ts:227 添加子节点。 Type parameters T: Node Parameters node: T 节点对象 Returns T 返回添加的节点 addChildAt addChildAt(node: Node, index: number): Node Inherited from Node.addChildAt Defined in laya/display/Node.ts:...
来源: Laya3.0_api 发布时间: 20231115
... changeValue 来让外部控制 能量条的 进度 我们把能量条都添加到舞台上面吧~~ 打开runGame.js(function () { /** * 游戏入口 */ function RunGame(){ this.bg = null; this.mapFloor = null; this.player = null; this.flyEnergy = null; this.speedEnergy = null; RunGame.__super.call(...
来源: Laya_社区 发布时间: 20160803
...de: T): T Inherited from Node.addChild Defined in laya/display/Node.ts:198 添加子节点。 Type parameters T: Node Parameters node: T 节点对象 Returns T 返回添加的节点 addChildAt addChildAt(node: Node, index: number): Node Inherited from Node.addChildAt Defined in laya/display/Node.ts:...
来源: Laya3.0_api 发布时间: 20231102
...配置。代码如下: ```html ``` > 以上代码LayaAir引擎中默认添加,并强制添加不得删除。 通过上面这段viewpot的配置,那页面在禁止用户手动缩放的同时,也会按设备的DPR进行自动缩放。 #### 1.4 逻辑宽高 逻辑宽高是指逻辑分辨率的...
来源: Laya2.0_文档 发布时间: 20210715
...de: T): T Inherited from Node.addChild Defined in laya/display/Node.ts:227 添加子节点。 Type parameters T: Node Parameters node: T 节点对象 Returns T 返回添加的节点 addChildAt addChildAt(node: Node, index: number): Node Inherited from Node.addChildAt Defined in laya/display/Node.ts:...
来源: Laya3.0_api 发布时间: 20231115
...de: T): T Inherited from Node.addChild Defined in laya/display/Node.ts:227 添加子节点。 Type parameters T: Node Parameters node: T 节点对象 Returns T 返回添加的节点 addChildAt addChildAt(node: Node, index: number): Node Inherited from Node.addChildAt Defined in laya/display/Node.ts:...
来源: Laya3.0_api 发布时间: 20231115