Click or drag to resize
UIPackage Class
A UI Package contains a description file and some texture,sound assets.
Inheritance Hierarchy
SystemObject
  FairyGUIUIPackage

Namespace: FairyGUI
Assembly: FairyGUI (in FairyGUI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class UIPackage

The UIPackage type exposes the following members.

Constructors
  NameDescription
Public methodUIPackage
Initializes a new instance of the UIPackage class
Top
Methods
  NameDescription
Public methodStatic memberAddPackage(String)
Add a UI package from a path relative to Unity Resources path.
Public methodStatic memberAddPackage(AssetBundle)
Add a UI package from assetbundle.
Public methodStatic memberAddPackage(String, UIPackageLoadResource)
Public methodStatic memberAddPackage(String, AssetBundle)
Add a UI package from a description text and a assetbundle.
Public methodStatic memberAddPackage(AssetBundle, AssetBundle)
Add a UI package from two assetbundles. desc and res can be same.
Public methodStatic memberAddPackage(String, AssetBundle, String)
Add a UI package from a description text and a assetbundle, with a optional main asset name.
Public methodStatic memberAddPackage(AssetBundle, AssetBundle, String)
Add a UI package from two assetbundles with a optional main asset name.
Public methodCreateObject(String)
Public methodStatic memberCreateObject(String, String)
Create a UI object.
Public methodCreateObject(String, Type)
Public methodStatic memberCreateObject(String, String, Type)
Create a UI object.
Public methodCreateObjectAsync(String, UIPackageCreateObjectCallback)
Public methodStatic memberCreateObjectAsync(String, String, UIPackageCreateObjectCallback)
Public methodStatic memberCreateObjectFromURL(String)
Create a UI object.
Public methodStatic memberCreateObjectFromURL(String, UIPackageCreateObjectCallback)
Public methodStatic memberCreateObjectFromURL(String, Type)
Create a UI object.
Public methodStatic memberGetById
Return a UIPackage with a certain id.
Public methodStatic memberGetByName
Return a UIPackage with a certain name.
Public methodGetItem
Public methodGetItemAsset(String)
Public methodGetItemAsset(PackageItem)
Public methodStatic memberGetItemAsset(String, String)
Get a asset with a certain name.
Public methodStatic memberGetItemAssetByURL
Get a asset with a certain name.
Public methodGetItemByName
Public methodStatic memberGetItemByURL
Public methodGetItems
Public methodStatic memberGetItemURL
Get url of an item in package.
Public methodStatic memberGetPackages
Public methodGetPixelHitTestData
Public methodStatic memberRemoveAllPackages
Public methodStatic memberRemovePackage(String)
Remove a package. All resources in this package will be disposed.
Public methodStatic memberRemovePackage(String, Boolean)
Remove a package. All resources in this package will be disposed.
Public methodStatic memberSetStringsSource
Set strings source.
Top
Properties
  NameDescription
Public propertyassetPath
The path relative to the resources folder.
Public propertycustomId
Set a custom id for package, then you can use it in GetById.
Public propertyid
Package id. It is generated by the Editor, or set by customId.
Public propertyname
Package name.
Top
See Also