大约有 283 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)
...mage = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.St...
来源: Laya_社区 发布时间: 20180724
... Laya.BaseMaterial { static DIFFUSETEXTURE_ID: number = 1; constructor() { super(); this.setShaderName("CustomShader"); } public getDiffuseTexture(): Laya.BaseTexture { return this._getTexture(CustomMaterial.DIFFUSETEXTURE_ID); } public setDiffuseTexture(value: Laya.BaseTexture): void { this._setTex...
来源: Laya_社区 发布时间: 20170815
...ne3D; private arr: any; constructor() { super(); this.arr = []; this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; //初始化照相机 var camera = this.newScene.addC...
来源: Laya_社区 发布时间: 20201120
...Laya.Label; function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = value; } } Laya.class(ListItemRender, "ListItemRend...
来源: Laya_示例 发布时间: 20240930
...pe: Number, default: 10} */ constructor() { super(); } onAwake() { console.log("场景渲染完成", this.speed); } } IDE中报错: [15:26:34] Working directory changed to E:\LayaAirIDE\resources\app [15:26:35] Using ...
来源: Laya_社区 发布时间: 20191227
...edresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域透传的数据 if(MiniAdpter.isZiYu && MiniAdpter.isPosM...
来源: Laya_社区 发布时间: 20180525
...ivate sEnemyRes = "remote/model/res/Conventional/man_1.lh" constructor() { super(); let self = this; Util3d.loadRes( [ this.sMapRes, this.sBullRes, this.sEnemyRes ], function (bIsFinish) { if (bIsFinish) { self.onResFinish(); } } ) } onResFinish() { let pNewScene = <Laya.Scene3D>Util3d.getRes(...
来源: Laya_社区 发布时间: 20200720
...number; /** 是否移除 */ public _to_remove: number; constructor(){ super(GunRoleType.LIVE_DOLL); } init( box: GunBox, doll_item: DollItem, doll_area: Area ):void { // if(!this._body_ani) // { // this._body_ani = new Laya.Animation(); // this.addChild(this._body_ani); // } // this._body_ani...
来源: Laya_社区 发布时间: 20180515
...put = laya.ui.TextInput; var WID = 373, HEI = 30; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.img.graphics.drawRect(0, 0, WID, HEI - 2, "#eeeeee"); this.label = new Label(); this.addChild(this.label); this.input = new TextInpu...
来源: Laya_社区 发布时间: 20180312
...export class MyDialog extends MyDialogUI { constructor() { super(); } onOpened(param: any): void { console.log("mylog------:" + JSON.stringify("onOpened")); this.openDataView.postMsg("test10086"); } } 此时 主域已经准备完毕。两个项目...
来源: Laya_社区 发布时间: 20190307