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

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

81. 采用on绑定事件后,界面释放时,持有的回调对象句柄会被清除吗?谢谢! [ 71%]

...动回收了,跟界面销毁无关,添加监听用on,移除监听用off,建议你可以专门写一个removeEvent函数,所有侦听过的事件可以全部提前在该函数下进行off,如果确保你的界面已经无用了,就可以直接调这个removeEvent函数,对所有进行...

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

82. JQ集成到Laya二次封装 [ 71%]

...).index(aWater)); }) //Laya.timer.once(3000,this,function(){ // JQ(aWater).off('click');//解除绑定 - 3秒后没有该点击事件了 //}); // //================= demo2 ======================= // //================= demo3 ======================= // JQ(aWater).on('click', function () { // alert( J...

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

83. laya.d3.resource.models.Mesh_API3.0 [ 71%]

...VertexDeclaration getVertices hasListener isCreateFromURL markAsUnreadbale off offAll offAllCaller on once setBoneIndices setBoneWeights setColors setIndices setNormals setPositions setTangents setUVs setVertices destroyUnusedResources load Constructors constructor new Mesh(isReadable?: boolean): Me...

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

84. laya.display.Node_API3.0 [ 71%]

...ChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce Constru...

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

85. laya.ani.bone.Templet_API3.0 [ 71%]

...IndexByName getTexture getTotalkeyframesLength hasListener isCreateFromURL off offAll offAllCaller on once setAnimationDataWithCache destroyUnusedResources Constructors constructor new Templet(): Templet Inherited from AnimationTemplet.constructor Overrides Resource.__constructor Defined in laya/ani...

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

86. laya.net.Loader_API3.0 [ 70%]

...arTextureRes clearUnLoaded event fetch getRes hasListener load loadPackage off offAll offAllCaller on once cacheRes clearRes clearResByGroup createNodes getAtlas getBaseTexture getRes getTexture2D registerLoader setGroup warn Constructors constructor new Loader(): Loader Defined in laya/net/Loader.t...

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

87. laya.resource.Texture2D_API3.0 [ 70%]

...mory destroy event getPixels gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once setDDSData setHDRData setImageData setKTXData setPixelsData setSubPixelsData destroyUnusedResources load Constructors constructor new Texture2D(width: number, height: number, format: TextureFor...

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

88. laya.d3.core.Transform3D_API3.0 [ 70%]

...etWorldLossyScale globalToLocal hasListener localToGlobal lookAt objLookat off offAll offAllCaller on once rotate rotationTo setWorldLossyScale toDir toLocalNormal translate Properties Static tmpVec3 tmpVec3: Vector3 = new Vector3() Defined in laya/d3/core/Transform3D.ts:882 Accessors localMatrix ge...

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

89. 区块地图-滚动地图 [ 69%]

...eX - mLastMouseX); mY = mY - (Laya.stage.mouseY - mLastMouseY); Laya.stage.off(Event.MOUSE_MOVE, this, mouseMove); } // 窗口大小改变,把地图的视口区域重设下 function resize() { //改变地图视口大小 tiledMap.changeViewPort(mX, mY, Browser.width, Browser.height); } })();module ...

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

90. 鼠标交互-双指旋转(多点触控) [ 69%]

... preRadian); preRadian = nowRadian; } } function onMouseUp(e) { Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interact...

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