大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0096 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...乐 赞同来自: 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
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
...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
...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
...ity:Vector3重力值。Constructor DetailPhysics3DUtils()Constructorpublic function Physics3DUtils() 创建一个 Physics 实例。 Method DetailgetIColliderCollision()method public static function getIColliderCollision(collider1:PhysicsComponent, collider2:PhysicsComponent):Boolean 获取是否忽...
来源: Laya2.0_api 发布时间: 20190513
...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
...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
... * @return 动画片段。 */ public function getClip(playName:String):AnimationClip { var index:int = _clipNames.indexOf(playName); if (index !== -1) { return _clips[index]; ...
来源: Laya_社区 发布时间: 20180425
...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
...如下: 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