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

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

211. laya.net.LoaderManager_API3.0 [ 38%]

...请通过Laya.loader访问。 全部队列加载完成,会派发 Event.COMPLETE 事件;如果队列中任意一个加载失败,会派发 Event.ERROR 事件,事件回调参数值为加载出错的资源地址。 LoaderManager 类提供了以下几种功能: 多线程:默认5个加载线...

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

212. 自定义shader-地形shader [ 38%]

...amera.transform.translate(new Laya.Vector3(-5, 20, -30), false); camera.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { setCustomMaterial(scene.getChildAt(2)); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var mesh...

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

213. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 37%]

...改组件属性,场景里的对象会自动同步,无需手动 node.getComponent("MeshRenderer").props.enabled = false; 2、调用节点/组件的一个方法,并返回值。例如: //下面是UI进程代码 //获取选中的节点 let node = Editor.scene.getSelection()[0]; //调用MyScript...

来源: Laya3.0_文档 发布时间: 20240918

214. laya.ui.View [ 35%]

...Methods | Events Packagelaya.uiClasspublic class ViewInheritanceView Box Component Sprite Node EventDispatcher ObjectSubclasses Dialog View 是一个视图类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值...

来源: laya_api 发布时间: 20170929

215. laya.net.Loader_API3.0 [ 31%]

...Parameters url: string 图集地址或者texture地址,比如 "res/atlas/comp.atlas"或"hall/bg.jpg" Returns void clearUnLoaded clearUnLoaded(): void Defined in laya/net/Loader.ts:859 清理当前未完成的加载,所有未加载的内容全部停止加载。 Returns void event event(type: stri...

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

216. laya.ui.Image [ 23%]

...Methods | Events Packagelaya.uiClasspublic class ImageInheritanceImage UIComponent Sprite Node EventDispatcher ObjectSubclasses AdvImage Image 类是用于表示位图图像或绘制图形的显示对象。 Image和Clip组件是唯一支持异步加载的两个组件,比如img.skin = "abc/xxx.pn...

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

217. laya.ui.FontClip [ 23%]

...Events Packagelaya.uiClasspublic class FontClipInheritanceFontClip Clip UIComponent Sprite Node EventDispatcher Object 字体切片,简化版的位图字体,只需设置一个切片图片和文字内容即可使用,效果同位图字体 使用方式:设置位图字体皮肤skin,设置皮...

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

218. laya.physics.PhysicsDebugDraw [ 22%]

...位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数...

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

219. laya.map.TileAniSprite [ 21%]

...位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数...

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

220. laya.ui.Clip [ 21%]

...| Methods | Events Packagelaya.uiClasspublic class ClipInheritanceClip UIComponent Sprite Node EventDispatcher ObjectSubclasses FontClip Clip 类是位图切片动画。 Clip 可将一张图片,按横向分割数量 clipX 、竖向分割数量 clipY , 或横向分割每个切片的宽度 clipW...

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