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

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

311. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 49%]

...xt } // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata;  //实例化角色容器 var foodBox = new Laya.Sprite(); //添加到舞台上 console.log(self.foodBox); Laya.stage.addChild(foodBox); self.foodBox = foodd...

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

312. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 49%]

...ic 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.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, fun...

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

313. 场景管理 · LayaAir3.0文档 · LAYABOX [ 49%]

...property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开Msg场景 Laya.Sce...

来源: Laya3.0_文档 发布时间: 20230717

314. 求助,屏幕旋转后滚动条没有跟随旋转 [ 49%]

...dule dialog { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t.width = 638; t....

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

315. 输入设备-贪吃蛇(重力感应) [ 49%]

...Handler; var WebGL = Laya.WebGL; function Segment(width, height) { Segment.super(this); Segment.prototype.init = function() { this.graphics.drawRect(-height / 2, -height / 2, width + height, height, "#FF7F50"); } // 获取关节另一头位置 Segment.prototype.getPinPosition = function() { var radi...

来源: Laya_示例 发布时间: 20240930

316. Laya3D场景加载问题 [ 49%]

... [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         let test = Laya....

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

317. 鼠标穿透问题 [ 49%]

...y.Sprite; class RecordItem extends Sprite { public function RecordItem() { super(); this.size(240, 27); } } 2017-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 DemonWu 赞同来自: Charles _loadingBg添加m...

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

318. 这种进度条怎么实现? [ 49%]

...eSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(this.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >> 1, this.DEF_SIZE >> 1, this....

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

319. 3D场景中背景无法透明,版本2.7.1 [ 49%]

...是黑色 export default class GameUI extends Laya.Scene { constructor() { super(); Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = null; //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相...

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

320. socket.sent [ 49%]

...i.v1UI{ public socket: Laya.Socket; public byte: Laya.Byte; constructor(){ super(); this.btn1.on(Laya.Event.CLICK,this,this.Btn1On); } Btn1On():void{ // socket.connect(“192.168.0.1.133”,8899); console.log("kjk"); this.socket.send("hello world");//这是发送字符串的形式。 //报错TypeE...

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