Skip to content

Commit

Permalink
Merge pull request #43 from tou-tou/update-to-v0.42.1
Browse files Browse the repository at this point in the history
Update to VCI v0.42.1
  • Loading branch information
tou-tou authored Sep 3, 2024
2 parents 62c265b + 34f89f0 commit 4c6ddd5
Show file tree
Hide file tree
Showing 52 changed files with 1,395 additions and 786 deletions.
4 changes: 2 additions & 2 deletions Assets/Effekseer/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "com.thirdparty.effekseer",
"displayName": "Effekseer",
"version": "0.41.1",
"unity": "2022.1",
"version": "0.42.1",
"unity": "2022.3",
"description": "",
"dependencies": {}
}
4 changes: 2 additions & 2 deletions Assets/NAudio/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "com.thirdparty.naudio",
"displayName": "NAudio",
"version": "0.41.1",
"unity": "2022.1",
"version": "0.42.1",
"unity": "2022.3",
"description": "",
"dependencies": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ public void SetupAfterEditorDelayCall()
System.IO.Path.ChangeExtension(effectFilePath.Value, "asset"));
effects.Add(effectIdx, effectAsset);

// Scale
effectAsset.Scale = effect.scale;

// find assets
// textures
for (int t = 0; t < effectAsset.textureResources.Count(); t++)
Expand All @@ -150,7 +153,7 @@ public void SetupAfterEditorDelayCall()
effectAsset.textureResources[t].texture = texture;

// texture Importer settings
var textureImporter = (TextureImporter) TextureImporter.GetAtPath(textureFilePath.Value);
var textureImporter = (TextureImporter)TextureImporter.GetAtPath(textureFilePath.Value);
if (textureImporter != null)
{
textureImporter.isReadable = true;
Expand Down Expand Up @@ -187,7 +190,7 @@ public void SetupAfterEditorDelayCall()
foreach (var emitter in effekseerEmitterExtension.emitters)
{
var effectIndex = emitter.effectIndex;
var emitterComponent = gameObject.GetOrAddComponent<Effekseer.EffekseerEmitter>();
var emitterComponent = gameObject.AddComponent<EffekseerEmitter>();
emitterComponent.effectAsset = effects[effectIndex];
emitterComponent.playOnStart = emitter.isPlayOnStart;
emitterComponent.isLooping = emitter.isLoop;
Expand All @@ -203,4 +206,4 @@ public void SetupAfterEditorDelayCall()
}
}
}
}
}
2 changes: 1 addition & 1 deletion Assets/VCI/UniVCI/Editor/IO/VCIExporterMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static void ExportObject()
try
{
rootGameObject = GameObjectSelectionService.GetSingleSelectedObject();
VciValidator.ValidateVciRequirements(rootGameObject);
EditorVciValidator.ValidateVciRequirements(rootGameObject);
}
catch (VciValidatorException e)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

namespace VCI
{
public static class VciValidator
public static class EditorVciValidator
{
public static void ValidateVciRequirements(GameObject gameObject)
{
RuntimeVciValidator.ValidateVciRequirements(gameObject);

VciVciObjectValidator.Validate(gameObject);
VciSubItemValidator.Validate(gameObject);
VciMetaValidator.Validate(gameObject);
VciScriptValidator.Validate(gameObject);

VciPhysicsValidator.Validate(gameObject);
VciRendererValidator.Validate(gameObject);
VciAnimationValidator.Validate(gameObject);
VciAudioValidator.Validate(gameObject);
Expand Down
33 changes: 0 additions & 33 deletions Assets/VCI/UniVCI/Editor/IO/Validators/VciPhysicsValidator.cs

This file was deleted.

10 changes: 10 additions & 0 deletions Assets/VCI/UniVCI/Editor/IO/WebSocketFilesImpoter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ public override void OnImportAsset(AssetImportContext ctx)
ctx.SetMainObject(textAsset);
}
}
[ScriptedImporter(1, "js")]
public sealed class JsImporter : ScriptedImporter
{
public override void OnImportAsset(AssetImportContext ctx)
{
var textAsset = new TextAsset(File.ReadAllText(ctx.assetPath));
ctx.AddObjectToAsset("main obj", textAsset);
ctx.SetMainObject(textAsset);
}
}
}
2 changes: 1 addition & 1 deletion Assets/VCI/UniVCI/Editor/Inspectors/VCIObjectEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public override void OnInspectorGUI()
try
{
var rootGameObject = GameObjectSelectionService.GetSingleSelectedObject();
VciValidator.ValidateVciRequirements(rootGameObject);
EditorVciValidator.ValidateVciRequirements(rootGameObject);
EditorUtility.DisplayDialog("Result", VCIConfig.GetText("no_error"), "OK");
}
catch (VciValidatorException e)
Expand Down
31 changes: 0 additions & 31 deletions Assets/VCI/UniVCI/Editor/Utils/VciPackageJson/Author.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/VCI/UniVCI/Editor/Utils/VciPackageJson/Author.cs.meta

This file was deleted.

25 changes: 0 additions & 25 deletions Assets/VCI/UniVCI/Editor/Utils/VciPackageJson/Dependency.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

30 changes: 0 additions & 30 deletions Assets/VCI/UniVCI/Editor/Utils/VciPackageJson/PackageVersion.cs

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions Assets/VCI/UniVCI/Editor/Utils/VciPackageJson/UnityVersion.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4c6ddd5

Please sign in to comment.