大约有 401 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...了更新物理根节点去做相机跟踪 代码如下: export default class test extends Laya.Script { strWorldRoot:Laya.Sprite; constructor() { super(); } cameraPlayerOffset:Laya.Point=new Laya.Point(18,0); cameraOffset:Laya.Point=new Laya.Point(180,570); onE...
来源: Laya_社区 发布时间: 20231123
...链接 提交 3 个回复 之肖 赞同来自: 测试代码 export default class TestView extends TestViewUI { constructor() { super(); } onAwake() { this.nativeImg = new Image(); let style = this.nativeImg.style; style.position = 'ab...
来源: Laya_社区 发布时间: 20230323
... null) 改成 if (FrameAnimation._sortIndexFun == null) 代码如下: class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun == null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } } 2019-11-19 0 2 分享 微...
来源: Laya_社区 发布时间: 20191109
...stage.addChild(storeTxList); 悬赏找大神看问题 export default class StoreItem extends Laya.Box { constructor() { super(); this.size(195, 210); } } 附件 : --> ListDemo.zip 2019-07-11 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20190711
...urce.Context; import laya.utils.Browser; import laya.utils.HitArea; public class KouTu extends Sprite { private var box:Sprite; private var interactionArea:Sprite; private var maskArea:Sprite; private var guideContainer:Sprite; private var gameContainer:Sprite; public function KouTu() { super(); //...
来源: Laya_社区 发布时间: 20170315
...需要添加如下的示例代码,实现脚本控制Radio: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Radio }) public radio: Laya.Radio; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方...
来源: Laya3.0_文档 发布时间: 20251010
...见。 显示对象层级关系如下: 代码如下:// 程序入口 class GameMain{ constructor() { Laya.init(1280,720,Laya.WebGL);//只有webGL才会有问题 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.alignV = Laya.Stage.ALIGN_TOP; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER;...
来源: Laya_社区 发布时间: 20170829
...AssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyBootPage2UI); UI = new MyBootClass(); Laya.stage.addChild(UI); } function MyBoot() { MyBoot.super(this); this.Boot.selectHandler = new Laya.Handler(this, onSelect...
来源: Laya_社区 发布时间: 20160722
...import morn.core.components.Box; import morn.core.handlers.Handler; public class ListView extends ListViewUI { public function ListView() { super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender);...
来源: Laya_社区 发布时间: 20151224
...int对象父容器rotation旋转之后检测不了碰撞 附上代码 class FishPonds extends Laya.Sprite { public are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are...
来源: Laya_社区 发布时间: 20180315