• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 283 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)

241. list item 添加事件后无法监听 [ 50%]

...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

242. 角色模型的材质列表切换后,不播放动作了 [ 49%]

... 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

243. localRotationEulerY旋转位置错误 [ 49%]

...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

244. 缓动-缓动函数演示 [ 49%]

...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

245. prop 识别不到 [ 49%]

...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

246. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 48%]

...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

247. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 48%]

...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

248. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 48%]

...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

249. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 48%]

...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

250. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 48%]

...export class MyDialog extends MyDialogUI {    constructor() {        super();   } ​    onOpened(param: any): void {        console.log("mylog------:" + JSON.stringify("onOpened"));        this.openDataView.postMsg("test10086");   } } 此时 主域已经准备完毕。两个项目...

来源: Laya_社区 发布时间: 20190307