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

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

1991. Dialog:屏蔽点击Dialog之外的区域关闭弹框 [ 68%]

...乐 赞同来自: instance代表创建的弹窗实例   instance.close = function(type = null) { if (!type) return // 这儿加一层限制,所有未知原因的关闭弹窗都不生效 this.closeType = type; Laya.Dialog.manager.close(this); } 2020-07-08 0 0 分享 微博 QZONE 微信 为什么...

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

1992. Laya.Handler.create 回调参数问题 [ 68%]

Laya.Handler.create 回调参数问题 var ape ; function Init() { Laya.init(400, 800, Laya.WebGL); Laya.stage.bgColor = "#999911";  ape = new Laya.Sprite();     Laya.stage.addChild(ape); var ag = ["lsd",ape,1,"str"]; ape.loadImage("../laya/assets/res/to1.png",0,0,0,0,Laya.Handler.create(this,...

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

1993. Laya.Tween怎么运用到3D对象上? [ 68%]

...en.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   ...

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

1994. 材质-PBRStandard材质 [ 68%]

...aterialScene/Showcase.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube ...

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

1995. laya.d3.utils.Physics3DUtils [ 68%]

...ity:Vector3重力值。Constructor DetailPhysics3DUtils()Constructorpublic function Physics3DUtils() 创建一个 Physics 实例。 Method DetailgetIColliderCollision()method public static function getIColliderCollision(collider1:PhysicsComponent, collider2:PhysicsComponent):Boolean 获取是否忽...

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

1996. Text的中划线(删除线) [ 68%]

...line && this.drawUnderline(textAlgin,x,y,i); __proto.drawUnderline=function(align,x,y,lineIndex){             var lineWidth=this._lineWidths[lineIndex];             switch (align){                 case 'center':                     ...

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

1997. 鼠标事件能否在有图形的区域感应,特别是子项坐标为负数时(已经找到问题) [ 68%]

...t; public class MainUi extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild( testPan ); testPan.pos( 300,300); testPan.graphics.drawRect(0,0,90,100,"#faaff0"); t...

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

1998. Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? [ 68%]

...      * @return 动画片段。          */         public function getClip(playName:String):AnimationClip {             var index:int = _clipNames.indexOf(playName);             if (index !== -1) {                 return _clips[index];          ...

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

1999. 网络和格式-XML [ 68%]

...ueContainsError); trace("\n"); proessXML(xmlValue); } // 使用xml private function proessXML(source:String):void { try { var xml:XmlDom = Utils.parseXMLFromString(source); } catch (e:Error) { trace(e.massage); return; } printDirectChildren(xml); } // 打印直接子级 private function printDirectC...

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

2000. macOS Sierra 下 IDE 1.7.8 发布时点构建按钮提示有错误 [ 68%]

...如下: module.js:472 throw err; ^ Error: Cannot find module 'colors' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> 请问怎么解决? 2017...

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