Compare commits
2 commits
accf7e787f
...
65f7206b46
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65f7206b46 | ||
|
|
3841a14d76 |
2 changed files with 12 additions and 8 deletions
|
|
@ -18,7 +18,7 @@ namespace gay.lilyy.SoldAvatarBootstrap
|
|||
{
|
||||
public AacFlBase aac;
|
||||
public GameObject root;
|
||||
public AacFlController fx;
|
||||
public AnimatorController fx;
|
||||
public AacFlClip emptyClip;
|
||||
public bool experimentalEnabled;
|
||||
public bool isPC;
|
||||
|
|
@ -210,12 +210,15 @@ namespace gay.lilyy.SoldAvatarBootstrap
|
|||
return;
|
||||
}
|
||||
|
||||
AvatarAssets assets = new();
|
||||
assets.root = root;
|
||||
AvatarAssets assets = new()
|
||||
{
|
||||
root = root,
|
||||
|
||||
assets.isPC = EditorUserBuildSettings.activeBuildTarget == BuildTarget.StandaloneWindows
|
||||
|| EditorUserBuildSettings.activeBuildTarget == BuildTarget.StandaloneWindows64;
|
||||
isPC = EditorUserBuildSettings.activeBuildTarget == BuildTarget.StandaloneWindows
|
||||
|| EditorUserBuildSettings.activeBuildTarget == BuildTarget.StandaloneWindows64,
|
||||
|
||||
fx = GetController(definition)
|
||||
};
|
||||
|
||||
|
||||
// Time AAC initialization
|
||||
|
|
@ -227,13 +230,12 @@ namespace gay.lilyy.SoldAvatarBootstrap
|
|||
AnimatorRoot = root.transform,
|
||||
DefaultValueRoot = root.transform,
|
||||
AssetKey = GUID.Generate().ToString(),
|
||||
AssetContainer = GetController(definition),
|
||||
AssetContainer = assets.fx,
|
||||
ContainerMode = AacConfiguration.Container.Everything,
|
||||
DefaultsProvider = new AacDefaultsProvider(true)
|
||||
});
|
||||
assets.emptyClip = assets.aac.NewClip();
|
||||
|
||||
assets.fx = assets.aac.NewAnimatorController();
|
||||
initStopwatch.Stop();
|
||||
AvatarLogger.LogInfo($"AAC initialization completed in {initStopwatch.ElapsedMilliseconds}ms");
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
"name": "Template",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:16dfbe6f38dd98d4aa89b7eaac50e6c8"
|
||||
"GUID:16dfbe6f38dd98d4aa89b7eaac50e6c8",
|
||||
"GUID:d689052aa981bf8459346a530f6e6678",
|
||||
"GUID:71d9dcc7d30ab1c45866d01afa59b6cf"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue