-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2473 from ousttrue/fix/vrm10_asset_import_flag
[vrm10][Importer引数] ScriptedImpoter からの Import で SpringBone の初期化を回避する
- Loading branch information
Showing
7 changed files
with
94 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10NopSpringboneRuntime.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.Threading.Tasks; | ||
using UniGLTF; | ||
using UniGLTF.SpringBoneJobs.Blittables; | ||
using UnityEngine; | ||
|
||
namespace UniVRM10 | ||
{ | ||
/// <summary> | ||
/// SpcriptedImporter 経由の import 向け。 | ||
/// NativeArray の確保や DontDestroyOnLoad を回避。 | ||
/// </summary> | ||
public class Vrm10NopSpringboneRuntime : IVrm10SpringBoneRuntime | ||
{ | ||
public void Dispose() | ||
{ | ||
} | ||
|
||
public Task InitializeAsync(Vrm10Instance instance, IAwaitCaller awaitCaller) | ||
{ | ||
return Task.CompletedTask; | ||
} | ||
|
||
public void Process() | ||
{ | ||
} | ||
|
||
public bool ReconstructSpringBone() | ||
{ | ||
return false; | ||
} | ||
|
||
public void RestoreInitialTransform() | ||
{ | ||
} | ||
|
||
public void SetJointLevel(Transform joint, BlittableJointMutable jointSettings) | ||
{ | ||
} | ||
|
||
public void SetModelLevel(Transform modelRoot, BlittableModelLevel modelSettings) | ||
{ | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10NopSpringboneRuntime.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,6 +230,7 @@ QualitySettings: | |
PSM: 5 | ||
PSP2: 2 | ||
Samsung TV: 2 | ||
Server: 0 | ||
Standalone: 5 | ||
Switch: 5 | ||
Tizen: 2 | ||
|