Show / Hide Table of Contents

Class PlatformGameStructure

Inheritance
System.Object
PlatformGameStructure
MixedGameStructure
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()
Namespace: AssetRipper.Import.Structure.Platforms
Assembly: AssetRipper.Import.dll
Syntax
public abstract class PlatformGameStructure

Fields

| Improve this Doc View Source

AlternateBundleExtension

Declaration
protected const string AlternateBundleExtension = ".bundle"
Field Value
Type Description
System.String
| Improve this Doc View Source

AssetBundleExtension

Declaration
protected const string AssetBundleExtension = ".unity3d"
Field Value
Type Description
System.String
| Improve this Doc View Source

DataBundleName

Declaration
protected const string DataBundleName = "data.unity3d"
Field Value
Type Description
System.String
| Improve this Doc View Source

DataFolderName

Declaration
protected const string DataFolderName = "Data"
Field Value
Type Description
System.String
| Improve this Doc View Source

DataName

Declaration
protected const string DataName = "data"
Field Value
Type Description
System.String
| Improve this Doc View Source

DataPackBundleName

Declaration
protected const string DataPackBundleName = "datapack.unity3d"
Field Value
Type Description
System.String
| Improve this Doc View Source

DefaultGameAssemblyName

Declaration
protected const string DefaultGameAssemblyName = "GameAssembly.dll"
Field Value
Type Description
System.String
| Improve this Doc View Source

DefaultGlobalMetadataName

Declaration
protected const string DefaultGlobalMetadataName = "global-metadata.dat"
Field Value
Type Description
System.String
| Improve this Doc View Source

DefaultUnityPlayerName

Declaration
protected const string DefaultUnityPlayerName = "UnityPlayer.dll"
Field Value
Type Description
System.String
| Improve this Doc View Source

GlobalGameManagerAssetsName

Declaration
protected const string GlobalGameManagerAssetsName = "globalgamemanagers.assets"
Field Value
Type Description
System.String
| Improve this Doc View Source

GlobalGameManagersName

Declaration
protected const string GlobalGameManagersName = "globalgamemanagers"
Field Value
Type Description
System.String
| Improve this Doc View Source

LevelPrefix

Declaration
protected const string LevelPrefix = "level"
Field Value
Type Description
System.String
| Improve this Doc View Source

LibName

Declaration
protected const string LibName = "lib"
Field Value
Type Description
System.String
| Improve this Doc View Source

Lz4BundleName

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

ManagedName

Declaration
protected const string ManagedName = "Managed"
Field Value
Type Description
System.String
| Improve this Doc View Source

MetadataName

Declaration
protected const string MetadataName = "Metadata"
Field Value
Type Description
System.String
| Improve this Doc View Source

ResourcesAssetsName

Declaration
protected const string ResourcesAssetsName = "resources.assets"
Field Value
Type Description
System.String
| Improve this Doc View Source

ResourcesName

Declaration
protected const string ResourcesName = "Resources"
Field Value
Type Description
System.String
| Improve this Doc View Source

s_levelTemplate

Declaration
protected static readonly Regex s_levelTemplate
Field Value
Type Description
System.Text.RegularExpressions.Regex
| Improve this Doc View Source

s_sharedAssetTemplate

Declaration
protected static readonly Regex s_sharedAssetTemplate
Field Value
Type Description
System.Text.RegularExpressions.Regex
| Improve this Doc View Source

StreamingName

Declaration
protected const string StreamingName = "StreamingAssets"
Field Value
Type Description
System.String
| Improve this Doc View Source

UnityName

Declaration
protected const string UnityName = "unity"
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

Assemblies

AssemblyName : AssemblyPath

Declaration
public Dictionary<string, string> Assemblies { get; }
Property Value
Type Description
Dictionary<System.String, System.String>
| Improve this Doc View Source

Backend

Declaration
public ScriptingBackend Backend { get; protected set; }
Property Value
Type Description
ScriptingBackend
| Improve this Doc View Source

DataPaths

Declaration
public IReadOnlyList<string> DataPaths { get; protected set; }
Property Value
Type Description
IReadOnlyList<System.String>
| Improve this Doc View Source

Files

Name : FullName

Declaration
public List<KeyValuePair<string, string>> Files { get; }
Property Value
Type Description
List<KeyValuePair<System.String, System.String>>
| Improve this Doc View Source

FileSystem

Declaration
public FileSystem FileSystem { get; protected set; }
Property Value
Type Description
FileSystem
| Improve this Doc View Source

GameDataPath

Declaration
public string GameDataPath { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Il2CppGameAssemblyPath

Declaration
public string Il2CppGameAssemblyPath { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Il2CppMetaDataPath

Declaration
public string Il2CppMetaDataPath { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

m_root

Declaration
protected DirectoryInfo m_root { get; set; }
Property Value
Type Description
AssetRipper.IO.Files.BundleFiles.DirectoryInfo
| Improve this Doc View Source

ManagedPath

Declaration
public string ManagedPath { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Name

Declaration
public string Name { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ResourcesPath

Declaration
public string ResourcesPath { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

RootPath

Declaration
public string RootPath { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

StreamingAssetsPath

Declaration
public string StreamingAssetsPath { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

UnityPlayerPath

Declaration
public string UnityPlayerPath { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Version

Declaration
public UnityVersion? Version { get; protected set; }
Property Value
Type Description
System.Nullable<UnityVersion>

Methods

| Improve this Doc View Source

AddAssetBundle(List<KeyValuePair<String, String>>, String, String)

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

AddFile(List<KeyValuePair<String, String>>, String, String)

Add game file

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

CollectAssemblies(DirectoryInfo, Dictionary<String, String>)

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

CollectAssetBundles(DirectoryInfo, List<KeyValuePair<String, String>>)

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

CollectAssetBundlesRecursively(DirectoryInfo, List<KeyValuePair<String, String>>)

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

CollectCompressedGameFiles(DirectoryInfo, List<KeyValuePair<String, String>>)

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

CollectFiles(Boolean)

Declaration
public virtual void CollectFiles(bool skipStreamingAssets)
Parameters
Type Name Description
System.Boolean skipStreamingAssets
| Improve this Doc View Source

CollectGameFiles(DirectoryInfo, List<KeyValuePair<String, String>>)

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

CollectSerializedGameFiles(DirectoryInfo, List<KeyValuePair<String, String>>)

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

CollectStreamingAssets()

Collect bundles from the Streaming Assets folder

Declaration
protected void CollectStreamingAssets()
| Improve this Doc View Source

GetUnityVersionFromBundleFile(String)

Declaration
protected static UnityVersion GetUnityVersionFromBundleFile(string filePath)
Parameters
Type Name Description
System.String filePath
Returns
Type Description
UnityVersion
| Improve this Doc View Source

GetUnityVersionFromDataDirectory(String)

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

GetUnityVersionFromSerializedFile(String)

Declaration
protected static UnityVersion GetUnityVersionFromSerializedFile(string filePath)
Parameters
Type Name Description
System.String filePath
Returns
Type Description
UnityVersion
| Improve this Doc View Source

HasIl2CppFiles()

Declaration
protected bool HasIl2CppFiles()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

HasMonoAssemblies(String)

Declaration
protected static bool HasMonoAssemblies(string managedDirectory)
Parameters
Type Name Description
System.String managedDirectory
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsPrimaryEngineFile(String)

Declaration
public static bool IsPrimaryEngineFile(string fileName)
Parameters
Type Name Description
System.String fileName
Returns
Type Description
System.Boolean
| Improve this Doc View Source

RequestAssembly(String)

Declaration
public string RequestAssembly(string assembly)
Parameters
Type Name Description
System.String assembly
Returns
Type Description
System.String
| Improve this Doc View Source

RequestDependency(String)

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

RequestResource(String)

Declaration
public string RequestResource(string resource)
Parameters
Type Name Description
System.String resource
Returns
Type Description
System.String
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾