Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
First - 1.0.0-alpha.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sanaehururu1200 committed Jul 18, 2024
1 parent 565c17d commit 37b06e5
Show file tree
Hide file tree
Showing 43 changed files with 27,985 additions and 18 deletions.
8 changes: 8 additions & 0 deletions Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions Editor/ContextMenu.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using UnityEngine;
using UnityEditor;

namespace studio.raspberry.vrchat.ma_suimin_system
{
public static class ContextMenu
{
const string baseMenuPath = "GameObject/RBS-SuiminSystem/";
const string prefabPathBase = "Packages/studio.raspberry.vrchat.ma-suimin-system/Runtime/Prefabs/";
const string japanesePrefabName = "RBS_Suimin(日本語).prefab";
const string englishPrefabName = "RBS_Suimin(English).prefab";

[MenuItem(baseMenuPath + "日本語版のセットアップ(Japanese)")]
public static void ApplyToAvatar_Japanese(MenuCommand command)
{
GameObject obj = UnityEditor.PrefabUtility.InstantiatePrefab(AssetDatabase.LoadAssetAtPath<GameObject>(prefabPathBase + japanesePrefabName)) as GameObject;
if (obj != null)
{
Transform objTransform = obj.transform;
objTransform.SetParent(Selection.activeTransform, false);
UnityEditor.EditorUtility.SetDirty(obj);
UnityEditor.EditorUtility.SetDirty(objTransform);
}
}

[MenuItem(baseMenuPath + "Setup english version(英語)")]
public static void ApplyToAvatar_English(MenuCommand command)
{
GameObject obj = UnityEditor.PrefabUtility.InstantiatePrefab(AssetDatabase.LoadAssetAtPath<GameObject>(prefabPathBase + englishPrefabName)) as GameObject;
if (obj != null)
{
Transform objTransform = obj.transform;
objTransform.SetParent(Selection.activeTransform, false);
UnityEditor.EditorUtility.SetDirty(obj);
UnityEditor.EditorUtility.SetDirty(objTransform);
}
}
}
}
11 changes: 11 additions & 0 deletions Editor/ContextMenu.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@

# RBS SuiminSystem 2
## ToDo: Write readme
7 changes: 7 additions & 0 deletions README.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file removed Runtime/.gitkeep
Empty file.
8 changes: 8 additions & 0 deletions Runtime/Core.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 37b06e5

Please sign in to comment.