Class PlatformGameStructure
Inheritance
System.Object
PlatformGameStructure
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: AssetRipper.Import.dll
public abstract class PlatformGameStructure
Fields
|
Improve this Doc
View Source
Declaration
protected const string AlternateBundleExtension = ".bundle"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string AssetBundleExtension = ".unity3d"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string DataBundleName = "data.unity3d"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string DataFolderName = "Data"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string DataName = "data"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string DataPackBundleName = "datapack.unity3d"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string DefaultGameAssemblyName = "GameAssembly.dll"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string DefaultGlobalMetadataName = "global-metadata.dat"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string DefaultUnityPlayerName = "UnityPlayer.dll"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string GlobalGameManagerAssetsName = "globalgamemanagers.assets"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string GlobalGameManagersName = "globalgamemanagers"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string LevelPrefix = "level"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string LibName = "lib"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string Lz4BundleName = "data.unity3d"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
MainDataName
Declaration
protected const string MainDataName = "mainData"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string ManagedName = "Managed"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string MetadataName = "Metadata"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string ResourcesAssetsName = "resources.assets"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string ResourcesName = "Resources"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected static readonly Regex s_levelTemplate
Field Value
Type |
Description |
System.Text.RegularExpressions.Regex |
|
|
Improve this Doc
View Source
Declaration
protected static readonly Regex s_sharedAssetTemplate
Field Value
Type |
Description |
System.Text.RegularExpressions.Regex |
|
|
Improve this Doc
View Source
Declaration
protected const string StreamingName = "StreamingAssets"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected const string UnityName = "unity"
Field Value
Type |
Description |
System.String |
|
Properties
|
Improve this Doc
View Source
AssemblyName : AssemblyPath
Declaration
public Dictionary<string, string> Assemblies { get; }
Property Value
Type |
Description |
Dictionary<System.String, System.String> |
|
|
Improve this Doc
View Source
Declaration
public ScriptingBackend Backend { get; protected set; }
Property Value
|
Improve this Doc
View Source
Declaration
public IReadOnlyList<string> DataPaths { get; protected set; }
Property Value
Type |
Description |
IReadOnlyList<System.String> |
|
|
Improve this Doc
View Source
Declaration
public List<KeyValuePair<string, string>> Files { get; }
Property Value
Type |
Description |
List<KeyValuePair<System.String, System.String>> |
|
|
Improve this Doc
View Source
Declaration
public FileSystem FileSystem { get; protected set; }
Property Value
|
Improve this Doc
View Source
Declaration
public string GameDataPath { get; protected set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public string Il2CppGameAssemblyPath { get; protected set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public string Il2CppMetaDataPath { get; protected set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
protected DirectoryInfo m_root { get; set; }
Property Value
Type |
Description |
AssetRipper.IO.Files.BundleFiles.DirectoryInfo |
|
|
Improve this Doc
View Source
Declaration
public string ManagedPath { get; protected set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public string Name { get; protected set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public string ResourcesPath { get; protected set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public string RootPath { get; protected set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public string StreamingAssetsPath { get; protected set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public string UnityPlayerPath { get; protected set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public UnityVersion? Version { get; protected set; }
Property Value
Type |
Description |
System.Nullable<UnityVersion> |
|
Methods
|
Improve this Doc
View Source
Declaration
protected static void AddAssetBundle(List<KeyValuePair<string, string>> files, string name, string path)
Parameters
Type |
Name |
Description |
List<KeyValuePair<System.String, System.String>> |
files |
|
System.String |
name |
|
System.String |
path |
|
|
Improve this Doc
View Source
Declaration
protected static void AddFile(List<KeyValuePair<string, string>> files, string name, string path)
Parameters
Type |
Name |
Description |
List<KeyValuePair<System.String, System.String>> |
files |
|
System.String |
name |
|
System.String |
path |
|
|
Improve this Doc
View Source
Declaration
protected static void CollectAssemblies(DirectoryInfo root, Dictionary<string, string> assemblies)
Parameters
Type |
Name |
Description |
AssetRipper.IO.Files.BundleFiles.DirectoryInfo |
root |
|
Dictionary<System.String, System.String> |
assemblies |
|
|
Improve this Doc
View Source
Collect asset bundles only from this directory
Declaration
protected static void CollectAssetBundles(DirectoryInfo root, List<KeyValuePair<string, string>> files)
Parameters
Type |
Name |
Description |
AssetRipper.IO.Files.BundleFiles.DirectoryInfo |
root |
|
List<KeyValuePair<System.String, System.String>> |
files |
|
|
Improve this Doc
View Source
Collect asset bundles from this directory and all subdirectories
Declaration
protected static void CollectAssetBundlesRecursively(DirectoryInfo root, List<KeyValuePair<string, string>> files)
Parameters
Type |
Name |
Description |
AssetRipper.IO.Files.BundleFiles.DirectoryInfo |
root |
|
List<KeyValuePair<System.String, System.String>> |
files |
|
|
Improve this Doc
View Source
Finds data.unity3d and datapack.unity3d when Lz4 compressed
Accoding to comments in Unity source file in the function at
PlatformDependent/AndroidPlayer/Source/ApkFile.cpp:268,
the datapack asset is only present if Gradle built an AAB with Unity
data asset pack inside and then bundletool converted AAB into universal APK.
Declaration
protected static void CollectCompressedGameFiles(DirectoryInfo root, List<KeyValuePair<string, string>> files)
Parameters
Type |
Name |
Description |
AssetRipper.IO.Files.BundleFiles.DirectoryInfo |
root |
|
List<KeyValuePair<System.String, System.String>> |
files |
|
|
Improve this Doc
View Source
Declaration
public virtual void CollectFiles(bool skipStreamingAssets)
Parameters
Type |
Name |
Description |
System.Boolean |
skipStreamingAssets |
|
|
Improve this Doc
View Source
Declaration
protected static void CollectGameFiles(DirectoryInfo root, List<KeyValuePair<string, string>> files)
Parameters
Type |
Name |
Description |
AssetRipper.IO.Files.BundleFiles.DirectoryInfo |
root |
|
List<KeyValuePair<System.String, System.String>> |
files |
|
|
Improve this Doc
View Source
CollectMainAssemblies()
Declaration
protected void CollectMainAssemblies()
|
Improve this Doc
View Source
Collects global game managers and all the level files
Declaration
protected static void CollectSerializedGameFiles(DirectoryInfo root, List<KeyValuePair<string, string>> files)
Parameters
Type |
Name |
Description |
AssetRipper.IO.Files.BundleFiles.DirectoryInfo |
root |
|
List<KeyValuePair<System.String, System.String>> |
files |
|
|
Improve this Doc
View Source
Collect bundles from the Streaming Assets folder
Declaration
protected void CollectStreamingAssets()
|
Improve this Doc
View Source
Declaration
protected static UnityVersion GetUnityVersionFromBundleFile(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
Returns
Type |
Description |
UnityVersion |
|
|
Improve this Doc
View Source
Declaration
protected static UnityVersion? GetUnityVersionFromDataDirectory(string dataDirectoryPath)
Parameters
Type |
Name |
Description |
System.String |
dataDirectoryPath |
|
Returns
Type |
Description |
System.Nullable<UnityVersion> |
|
|
Improve this Doc
View Source
Declaration
protected static UnityVersion GetUnityVersionFromSerializedFile(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
Returns
Type |
Description |
UnityVersion |
|
|
Improve this Doc
View Source
Declaration
protected bool HasIl2CppFiles()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
protected static bool HasMonoAssemblies(string managedDirectory)
Parameters
Type |
Name |
Description |
System.String |
managedDirectory |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public static bool IsPrimaryEngineFile(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public string RequestAssembly(string assembly)
Parameters
Type |
Name |
Description |
System.String |
assembly |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Attempts to find the path for the dependency with that name.
Declaration
public string RequestDependency(string dependency)
Parameters
Type |
Name |
Description |
System.String |
dependency |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public string RequestResource(string resource)
Parameters
Type |
Name |
Description |
System.String |
resource |
|
Returns
Type |
Description |
System.String |
|