VRC SDK
This project aims to completely document the VRChat Unity SDK
Loading...
Searching...
No Matches
VRC.ValidationHelpers Class Reference
Inheritance diagram for VRC.ValidationHelpers:
Collaboration diagram for VRC.ValidationHelpers:

Static Public Member Functions

static int GetAssetBundleSizeLimit (ContentType contentType, bool mobilePlatform, bool compressed=true)
 
static string GetAssetBundleOverSizeLimitMessage (ContentType contentType, bool mobilePlatform, bool compressed=true)
 
static string GetAssetBundleOverSizeLimitMessage (ContentType contentType, int contentSize, bool mobilePlatform, bool compressed=true)
 
static string GetAssetBundleOverSizeLimitMessageSDKWarning (ContentType contentType, int contentSize, bool mobilePlatform, bool compressed=true)
 
static string FormatFileSize (long filesize, bool includeUnitPostfix=true, int precision=-1, string requiredUnit=null)
 

Static Private Attributes

const int BYTES_TO_MB = 1048576
 
const int CONTENT_WORLD_ASSET_BUNDLE_SIZE_LIMIT_PC = -1
 
const int CONTENT_WORLD_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_PC = -1
 
const int CONTENT_AVATAR_ASSET_BUNDLE_SIZE_LIMIT_PC = 209715200
 
const int CONTENT_AVATAR_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_PC = 524288000
 
const int CONTENT_WORLD_ASSET_BUNDLE_SIZE_LIMIT_MOBILE = 104857600
 
const int CONTENT_WORLD_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_MOBILE = -1
 
const int CONTENT_AVATAR_ASSET_BUNDLE_SIZE_LIMIT_MOBILE = 10485760
 
const int CONTENT_AVATAR_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_MOBILE = 41943040
 

Detailed Description

Definition at line 586 of file VRCSDKBase.cs.

Member Function Documentation

◆ FormatFileSize()

static string VRC.ValidationHelpers.FormatFileSize ( long  filesize,
bool  includeUnitPostfix = true,
int  precision = -1,
string  requiredUnit = null 
)
static

Definition at line 695 of file VRCSDKBase.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAssetBundleOverSizeLimitMessage() [1/2]

static string VRC.ValidationHelpers.GetAssetBundleOverSizeLimitMessage ( ContentType  contentType,
bool  mobilePlatform,
bool  compressed = true 
)
static

Definition at line 656 of file VRCSDKBase.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAssetBundleOverSizeLimitMessage() [2/2]

static string VRC.ValidationHelpers.GetAssetBundleOverSizeLimitMessage ( ContentType  contentType,
int  contentSize,
bool  mobilePlatform,
bool  compressed = true 
)
static

Definition at line 662 of file VRCSDKBase.cs.

Here is the call graph for this function:

◆ GetAssetBundleOverSizeLimitMessageSDKWarning()

static string VRC.ValidationHelpers.GetAssetBundleOverSizeLimitMessageSDKWarning ( ContentType  contentType,
int  contentSize,
bool  mobilePlatform,
bool  compressed = true 
)
static

Definition at line 676 of file VRCSDKBase.cs.

Here is the call graph for this function:

◆ GetAssetBundleSizeLimit()

static int VRC.ValidationHelpers.GetAssetBundleSizeLimit ( ContentType  contentType,
bool  mobilePlatform,
bool  compressed = true 
)
static

Definition at line 607 of file VRCSDKBase.cs.

Here is the caller graph for this function:

Member Data Documentation

◆ BYTES_TO_MB

const int VRC.ValidationHelpers.BYTES_TO_MB = 1048576
staticprivate

Definition at line 588 of file VRCSDKBase.cs.

◆ CONTENT_AVATAR_ASSET_BUNDLE_SIZE_LIMIT_MOBILE

const int VRC.ValidationHelpers.CONTENT_AVATAR_ASSET_BUNDLE_SIZE_LIMIT_MOBILE = 10485760
staticprivate

Definition at line 602 of file VRCSDKBase.cs.

◆ CONTENT_AVATAR_ASSET_BUNDLE_SIZE_LIMIT_PC

const int VRC.ValidationHelpers.CONTENT_AVATAR_ASSET_BUNDLE_SIZE_LIMIT_PC = 209715200
staticprivate

Definition at line 594 of file VRCSDKBase.cs.

◆ CONTENT_AVATAR_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_MOBILE

const int VRC.ValidationHelpers.CONTENT_AVATAR_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_MOBILE = 41943040
staticprivate

Definition at line 604 of file VRCSDKBase.cs.

◆ CONTENT_AVATAR_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_PC

const int VRC.ValidationHelpers.CONTENT_AVATAR_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_PC = 524288000
staticprivate

Definition at line 596 of file VRCSDKBase.cs.

◆ CONTENT_WORLD_ASSET_BUNDLE_SIZE_LIMIT_MOBILE

const int VRC.ValidationHelpers.CONTENT_WORLD_ASSET_BUNDLE_SIZE_LIMIT_MOBILE = 104857600
staticprivate

Definition at line 598 of file VRCSDKBase.cs.

◆ CONTENT_WORLD_ASSET_BUNDLE_SIZE_LIMIT_PC

const int VRC.ValidationHelpers.CONTENT_WORLD_ASSET_BUNDLE_SIZE_LIMIT_PC = -1
staticprivate

Definition at line 590 of file VRCSDKBase.cs.

◆ CONTENT_WORLD_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_MOBILE

const int VRC.ValidationHelpers.CONTENT_WORLD_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_MOBILE = -1
staticprivate

Definition at line 600 of file VRCSDKBase.cs.

◆ CONTENT_WORLD_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_PC

const int VRC.ValidationHelpers.CONTENT_WORLD_UNCOMPRESSED_ASSET_BUNDLE_SIZE_LIMIT_PC = -1
staticprivate

Definition at line 592 of file VRCSDKBase.cs.


The documentation for this class was generated from the following file: