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

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

2441. 限制区域拖动效果,为什么会无法限制呢? [ 46%]

...unction onStartDrag(e) { this.startDrag(dragRegion, true, 100); } }  Laya.class(GolfMainUI, "GolfMainUI", GolfMainPageUI);  //初始化DEBUG //初始化微信小游戏 Laya.MiniAdpter.init(); //程序入口 Laya.init(500,800, WebGL);  Laya.stage.scaleModel = "full";  // DebugTool.init() //激活...

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

2442. VBOX动态增加的元素没有自动布局 [ 46%]

...bel; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; class TestUI extends ui.test.TestPageUI { constructor() { super(); var btn1=new ui.test.view_btnUI(); var btn1_btn:laya.ui.Button=btn1.getChildByName("btn") as laya.ui.Button; //问题一: 这里为什么获取不到子node...

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

2443. laya.d3.core.RenderableSprite3D [ 46%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames RenderableSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class RenderableSprite3DInheritanceRenderableSprite3D Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses Glitter, Mes...

来源: laya_api 发布时间: 20170929

2444. 微信小游戏无法用bin目录调试,只能发布后在release/wxgame/中调试 [ 46%]

...function/",  运行报错 gameContext?id=1:58 libs/laya.ui.js: TypeError: Class constructor Component cannot be invoked without 'new' at new Widget (laya.ui.js:201) at laya.ui.js:349 at laya.ui.js:1 at wrapFn (gameContext?id=1:51) at require (VM505 WAGameSubContext.js:2) at a (VM505 WAGameSubContex...

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

2445. 怎么像canvas那样做到每次循环去清空一次画布,我发现每次画的时候他会把上一次的坐标也画出来,导致变形了,该如何让他每次累加的同时清空上次的路径 [ 46%]

...次累加的同时清空上次的路径 var sp; var x = 0; export default class Scene extends Laya.Sprite{ constructor(){ super(); Laya.init(500, 300, Laya.WebGL); var bg = new Laya.Sprite(); bg.loadImage("comp/hunter.jpg"); this.addChild(bg); Laya.timer.frameLoop(1,this,this.move); // drawSomething...

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

2446. laya.ui.AsynDialog [ 46%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames AsynDialogProperties | Methods | Events | Constants Packagelaya.uiClasspublic class AsynDialogInheritanceAsynDialog Dialog View Box Component Sprite Node EventDispatcher Object 异步Dialog的生命周期:show或者pop...

来源: laya_api 发布时间: 20170929

2447. ToolTip鼠标悬停的使用 [ 46%]

...aya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用于鼠标悬浮提示框 private var _tip:TipManager;//实例化TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.hei...

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

2448. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 46%]

....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.ComboBox)。 ​ ComboBox 组件的图像资源示例: ​ ![图片0.png](img/1.png) ​ (图1) ​ 设置 ComboBox 的属性 labels 的值为 “label1,label2” 后,显示效果如下: ​ 常态: ...

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

2449. as hello world 背景还是黑色 [ 46%]

...d 背景还是黑色 as hello world package { import laya.ui.Label; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#ffffff"; var sp : Label = new Label("hello world"); //sp.fontSize = 55; sp.pos(100, 100) ; //sp.color = "#000000...

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

2450. laya.net.LoaderManager [ 46%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderManagerProperties | Methods | Events Packagelaya.netClasspublic class LoaderManagerInheritanceLoaderManager EventDispatcher Object LoaderManager 类用于用于批量加载资源。此类是单例,不要手动...

来源: Laya2.0_api 发布时间: 20190513