You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
470 B
C#
17 lines
470 B
C#
using UnityEditor;
|
|
using System;
|
|
using System.Reflection;
|
|
|
|
namespace Game
|
|
{
|
|
public static class SyncSolution
|
|
{
|
|
[MenuItem("Assets/Sync Solution #&s")]
|
|
public static void Sync()
|
|
{
|
|
var editor = Type.GetType("UnityEditor.SyncVS, UnityEditor");
|
|
var syncSolution = editor.GetMethod("SyncSolution", BindingFlags.Public | BindingFlags.Static);
|
|
syncSolution.Invoke(null, null);
|
|
}
|
|
}
|
|
} |