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

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

1451. 请问用laya的tab模板创建的tab,为啥没有点击事件啊?而且tab标签点击后没有一直处于按下状态 [ 75%]

...栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyBootPage2UI);     UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.super(this);          this.Boot.selectHa...

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

1452. laya.ui.WXOpenDataViewer_API3.0 [ 75%]

...。 example private var _testTips:TestTipsUI = new TestTipsUI(); private function testTips():void { //简单鼠标提示 btn2.toolTip = "这里是鼠标提示<b>粗体</b><br>换行"; //自定义的鼠标提示 btn1.toolTip = showTips1; //带参数的自定义鼠标提示 clip.tool...

来源: Laya3.0_api 发布时间: 20231102

1453. LayaFlash如何使用chrome调试问题? [ 75%]

...rite; import flash.events.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); IFlash.setSize(960, 640); //2D项目...

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

1454. UI-CheckBox [ 75%]

...nt = 100; private const Y_OFFSET:int = 50; private var skins:Array; public function UI_CheckBox() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.s...

来源: Laya2.0_示例 发布时间: 20260303

1455. laya.ui.UIComponent_API3.0 [ 75%]

...。 example private var _testTips:TestTipsUI = new TestTipsUI(); private function testTips():void { //简单鼠标提示 btn2.toolTip = "这里是鼠标提示<b>粗体</b><br>换行"; //自定义的鼠标提示 btn1.toolTip = showTips1; //带参数的自定义鼠标提示 clip.tool...

来源: Laya3.0_api 发布时间: 20231115

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

...ish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() funct...

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

1457. Laya.timer.loop 的优先级 [ 75%]

...0, oy2419498011 • 2018-02-27 16:17 Laya.timer.loop(1000,this,delete_); function delete_(){ // Laya.timer.clear(this,delete_); delete_desktop(1); } function delete_desktop(cut_out){ if(cut_out==1){ delete_majian() }; }; function delete_majian(){ game.bottom.removeChild(game.bottom.getChildAt(0));...

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

1458. 这个怎么办 laya.core.js:16463 Uncaught TypeError: Cannot read property '_tf' of null [ 75%]

...15797)     at Sprite.__proto.localToGlobal (laya.core.js:15757)     at Function.Utils.getGlobalRecByPoints (laya.core.js:10216)     at Function.Utils.getGlobalPosAndScale (laya.core.js:10224)     at Function.Utils.getTransformRelativeToWindow (laya.core.js:10293)     at GamePagePlayer.Util...

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

1459. 在最新的IOS14上,UI的lighter模式渲染不正确,背景是黑色的,无法实现透明 [ 75%]

...yaAir 1.x 修改方法:   在laya.webgl.js里  搜 BlendMode.BlendAdd=function(gl) 找到   BlendMode.BlendAdd=function(gl){ gl.blendFunc(/*laya.webgl.WebGLContext.ONE*/1,/*laya.webgl.WebGLContext.DST_ALPHA*/0x0304); } 替换为:   BlendMode.BlendAdd=function(gl){ gl.blendFunc(1,1); } 2020-...

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

1460. laya.events.Event [ 75%]

...态 (true) 还是非活动状态 (false)。 Implementation     public function get altKey():BooleancharCodeproperty charCode:Boolean  [read-only] 包含按下或释放的键的字符代码值。字符代码值为英文键盘值。 Implementation     public function get charCode():Booleanc...

来源: laya_api 发布时间: 20170929