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

大约有 291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0080 秒)

241. 动画不显示 [ 66%]

...             {                 m_Role.pos((Laya.stage.width - 27)/2,(Laya.stage.height - 75)/2);             }             else{                 m_Role.pos((Laya.stage.width - 14)/2 + 15,(Laya.stage.height - 75)/2);             }      ...

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

242. drawToCanvas获得的webglcanvas怎么缩小 [ 66%]

...wToCanvas获得的webglcanvas怎么缩小 我通过 this.drawToCanvas(this.width, this.height, 0, 0); 获得了webglcanvas,想整体尺寸缩小一倍,请问怎么操作? 2017-10-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

243. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 65%]

..."clipY": "3"}}, {"type": "Label", "props": {"y": "1", "text": "treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "...

来源: Laya2.0_文档 发布时间: 20210715

244. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 65%]

... new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.playerHB.height / 2; this.playerHB.y = 500; this.playerHB.txtName.text = "搞个毛啊"; // this.playerVO.name; this.addChild(this.playerHB); } private aaa():void { this.playerHB.x += th...

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

245. 微信小游戏内TextInput不能实现只输数字的功能 [ 65%]

...但还能用 let input = new Laya.TextInput(); this.addChild(input); input.width = 100; input.height = 50; input.on(Laya.Event.BLUR, this, e=>{ let str = input.text.split(''); for (let i = 0; i < str.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j++) { if (str[i] == j.toStr...

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

246. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 65%]

...emRender = Item; tree.xml = xml; tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } } import Box = Laya.Box; import Clip = Laya.Clip; // 此类对应的json对象: // {"child": [{"type": "Clip", "props":...

来源: Laya2.0_文档 发布时间: 20210714

247. HScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 65%]

...rollBar.skin = "../../../../res/ui/hscroll.png"; //设置宽度 hScrollBar.width = 400; //设置位置 hScrollBar.pos(150, 170); //最低滚动位置数字 hScrollBar.min = 0; //最高滚动位置数字 hScrollBar.max = 100; //滚动变化事件回调 hScrollBar.changeHandler = new Handler(this, onC...

来源: Laya2.0_文档 发布时间: 20210714

248. ToolTip鼠标悬停的使用 [ 65%]

...er;//实例化TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya...

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

249. LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 [ 65%]

...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 注册函数里面 事件侦听函数的执行域 的详解 websocket 中 protobuf 数据的发送与接收的具体方法是怎样的? ts如何通过文件集加载的...

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

250. android旋转屏幕 半边黑屏 [ 64%]

...本LayaAir Native SDK 0.9.2  正常//初始化引擎 Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#ffeff0"; //设置横竖屏 // Laya.stage.optimizeScrollRect = true; Font.defaultFont = "宋体"; Laya.stage.alignV = "top"; Laya.stage.alignH = "left"; Laya.stage.screenMode...

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