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

大约有 1,653 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0149 秒)

501. laya.net.Socket_API3.0 [ 72%]

...s connected endian input output Methods cleanSocket close connect connectByUrl event flush hasListener off offAll offAllCaller on once send Constructors constructor new Socket(host?: string | null, port?: number, byteClass?: {}, protocols?: any[] | null, isSecure?: boolean): Socket Defined in laya/n...

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

502. [0]laya-zip游戏加载提速库(Laya3.0版本适配更新) [ 72%]

...p,则使用方法为[code]// Laya 2.x及以下版本 Laya.loader.create([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code][code]// Laya3.x版本 Laya.loader.load([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code] 加载资源使用:[code]// Laya 2.x及以下版本 let player1 = Laya.load...

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

503. laya.ui.View_API3.0 [ 72%]

...uctors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize hitTestPrior mouseThrough name tag drawtocanvCtx unDestroyedScenes Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX cente...

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

504. 判断场景里是否存在模型? [ 72%]

...场景里加载的LH模型会自动销毁吗? 我 用 Laya.Sprite3D.load(url+"/chaoshi/LayaScene_xue/xue.lh") 异步加载的模型,我向右 移动摄像机,场景里的sprite从来都不会变, 而且我的靠近屏幕左边的模型会自动消失不见。。 但是用 系统建的BOX,...

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

505. https://ask.layabox.com/question/13181官方Demo运行不起来 [ 72%]

...data") { //            trace("------------------------filedata-url:" + message.url); console.log("ddddddddddddddddddddd"); Laya.MiniFileMgr.ziyuFileData[message.url] = message.data;//文本数据 } }); --------------------------------------------------------------------这里下载xiaoso...

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

506. 动画图集缓存问题 [ 72%]

...的第三个参数来缓存的,如果缓存后用 Laya.loader.clearRes(url,true)这样卸载资源,再次缓存同名动画,播放动画就会闪烁。如果用Laya.loader.clearRes(url,false)卸载,播放动画就不会显示,除非缓存之前先Laya.Animation.clearCache,这样就正常...

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

507. 粒子-粒子演示1 [ 72%]

...= Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import URL = Laya.URL; export class Particle_T1 { private sp: Particle2D; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE;...

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

508. laya.media.SoundChannel_API3.0 [ 72%]

...er SoundChannel Index Properties completeHandler isStopped loops startTime url Accessors duration position volume Methods event hasListener off offAll offAllCaller on once pause play resume stop Properties completeHandler completeHandler: Handler Defined in laya/media/SoundChannel.ts:28 播放完成...

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

509. 粒子-粒子演示2 [ 72%]

...= Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import URL = Laya.URL; export class Particle_T2 { private sp: Particle2D; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE;...

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

510. 粒子-粒子演示3 [ 72%]

...= Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import URL = Laya.URL; export class Particle_T3 { private sp: Particle2D; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE;...

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