mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-21 17:50:57 -05:00
ImportedTexturesAccessibility.Auto and Application.isPlaying
This commit is contained in:
parent
9ba79e9f9d
commit
ef5c0da4e2
|
|
@ -21,7 +21,7 @@ namespace UniGLTF
|
|||
public ImporterContextSettings(
|
||||
bool loadAnimation = true,
|
||||
Axes invertAxis = Axes.Z,
|
||||
ImportedTexturesAccessibility importedTexturesAccessibility = ImportedTexturesAccessibility.Default)
|
||||
ImportedTexturesAccessibility importedTexturesAccessibility = ImportedTexturesAccessibility.Auto)
|
||||
{
|
||||
LoadAnimation = loadAnimation;
|
||||
InvertAxis = invertAxis;
|
||||
|
|
|
|||
|
|
@ -10,18 +10,18 @@ namespace UniGLTF
|
|||
{
|
||||
/// <summary>
|
||||
/// Platform dependent.
|
||||
/// IsEditor ? Readable : NonReadable
|
||||
/// see: ToMarkNonReadable()
|
||||
/// </summary>
|
||||
Default,
|
||||
Auto,
|
||||
|
||||
/// <summary>
|
||||
/// Bitmaps are accessible.
|
||||
/// Specify explicitly when exporting an imported model again
|
||||
/// Specify explicitly when exporting an imported model again.
|
||||
/// <summary>
|
||||
Readable,
|
||||
|
||||
/// <summary>
|
||||
/// It can save memory usage. Recommended
|
||||
/// It can save memory usage. Recommended.
|
||||
/// </summary>
|
||||
NonReadable,
|
||||
}
|
||||
|
|
@ -35,14 +35,14 @@ namespace UniGLTF
|
|||
{
|
||||
switch (self)
|
||||
{
|
||||
case ImportedTexturesAccessibility.Default:
|
||||
if (Application.isEditor)
|
||||
case ImportedTexturesAccessibility.Auto:
|
||||
if (Application.isPlaying)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// v0.128.4 からの挙動変更
|
||||
// change behaviour from v0.128.4
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace UniGLTF
|
|||
///
|
||||
/// v0.128.4 ImportedTexturesAccessibility を参照
|
||||
/// </remarks>
|
||||
public ImportedTexturesAccessibility ImportedTexturesAccessibility { get; } = ImportedTexturesAccessibility.Default;
|
||||
public ImportedTexturesAccessibility ImportedTexturesAccessibility { get; } = ImportedTexturesAccessibility.Auto;
|
||||
|
||||
public UnitySupportedImageTypeDeserializer(ImportedTexturesAccessibility importedTexturesAccessibility)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user