大约有 264 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0060 秒)
Laya_社区(75) Laya3.0_api(71) Laya2.0_api(53) laya_api(38) Laya3.0_文档(11) Laya2.0_文档(10) Laya2.0_示例(3) Laya_示例(3)
...(this, onLoadComplete)); } private function onLoadComplete():void { var xmlString:String;//创建一个xml字符串,用于存储树结构数据。 xmlString = "<root><item label='box1'><abc label='child1'/><abc label='child2'/><abc lab...
来源: Laya3.0_api 发布时间: 20231115
...销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.destroyUnusedResour...
来源: Laya2.0_文档 发布时间: 20210715
...是否为静态。 Sprite3D layer : int 获取蒙版。 Sprite3D name : String节点名称。Node nearPlane : Number 获取近裁面。 BaseCamera normalizedViewport : Viewport 获取裁剪空间的视口。 Camera numChildren : int[read-only] 子对象数量。 Node orthographic : Boolean ...
来源: Laya2.0_api 发布时间: 20190513
...ParentPoint updateZOrder fromImage Constructors constructor new Clip(url?: string, clipX?: number, clipY?: number): Clip Overrides UIComponent.constructor Defined in laya/ui/Clip.ts:151 创建一个新的 Clip 示例。 Parameters Default value url: string = null 资源类库名或者地址 Default ...
来源: Laya3.0_api 发布时间: 20231115
...销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.destroyUnusedResour...
来源: Laya2.0_文档 发布时间: 20210715
...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Component cacheAs : String 指定显示对象是...
来源: laya_api 发布时间: 20170929
... BaseMaterial cloneTo(destObject:*):void 克隆。 BaseMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods...
来源: Laya2.0_api 发布时间: 20190513
...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheAs : String 指定显示对象...
来源: Laya2.0_api 发布时间: 20190513
...化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); } } new LayaUISample; ``` 通过dat...
来源: Laya2.0_文档 发布时间: 20210715
...xport class Loader_MultipleType { private ROBOT_DATA_PATH: string = "res/swf/star.swf"; private ROBOT_DATA_PATHS: string = "res/swf/star.json"; private ROBOT_TEXTURE_PATH: string = "res/swf/star.png"; constructor() { // Laya.ini...
来源: Laya_社区 发布时间: 20180203