CCContentManager
CCContentManager
Cocos2DInheritance: System.Object
Constructors
CCContentManager(IServiceProvider)
CCContentManager(IServiceProvider)(System.IServiceProvider serviceProvider)Parameters:
serviceProvider (System.IServiceProvider)CCContentManager(IServiceProvider, string)
CCContentManager(IServiceProvider, string)(System.IServiceProvider serviceProvider, System.String rootDirectory)Parameters:
serviceProvider (System.IServiceProvider)rootDirectory (System.String)Fields
SharedContentManager(Cocos2D.CCContentManager)
Properties
SearchPaths(System.Collections.Generic.ListSystem.String)
SearchResolutionsOrder(System.Collections.Generic.ListSystem.String)
Methods
GetAssetStream(string)
System.IO.Stream GetAssetStream(string)(System.String assetName)Parameters:
assetName (System.String)Returns:
System.IO.StreamLoadFilenameLookupDictionaryFromFile(string)
LoadFilenameLookupDictionaryFromFile(string)(System.String filename)Parameters:
filename (System.String)Load(string)
T Load(string)(System.String assetName)Parameters:
assetName (System.String)Returns:
TExample
Load(string, bool)
T Load(string, bool)(System.String assetName, System.Boolean weakReference)Parameters:
assetName (System.String)weakReference (System.Boolean)Returns:
TReloadGraphicsAssets()
ReloadGraphicsAssets()()Example
SetFilenameLookupDictionary(PlistDictionary)
SetFilenameLookupDictionary(PlistDictionary)(Cocos2D.PlistDictionary filenameLookupDict)Parameters:
filenameLookupDict (Cocos2D.PlistDictionary)TryLoad(string)
T TryLoad(string)(System.String assetName)Parameters:
assetName (System.String)Returns:
TTryLoad(string, bool)
T TryLoad(string, bool)(System.String assetName, System.Boolean weakReference)Parameters:
assetName (System.String)weakReference (System.Boolean)Returns:
TUnload()
Unload()()Example