Skip to content

Commit 509683c

Browse files
committed
[src] Update all Editor script to move menu into Tools
1 parent 4c463c2 commit 509683c

14 files changed

Lines changed: 35 additions & 35 deletions

Core/Scripts/Editor/Components/SofaBeamAdapterEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public class SofaBeamAdapterModelEditor : Editor
1212
/// Add SofaBeamAdapterModel creation to the SofaUnity Menu
1313
/// </summary>
1414
/// <returns>Pointer to the SofaBeamAdapterModel GameObject</returns>
15-
[MenuItem("SofaUnity/SofaComponent/SofaBeamAdapterModel")]
16-
[MenuItem("GameObject/Create Other/SofaComponent/SofaBeamAdapterModel")]
15+
[MenuItem("Tools/SofaUnity/SofaComponent/SofaBeamAdapterModel")]
16+
[MenuItem("GameObject/Tools/SofaUnity/SofaComponent/SofaBeamAdapterModel")]
1717
public static GameObject CreateNew()
1818
{
1919
if (Selection.activeTransform != null)

Core/Scripts/Editor/Components/SofaBeamModelEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public class SofaBeamModelEditor : Editor
1515
/// Add SofaBeamModel creation to the SofaUnity Menu
1616
/// </summary>
1717
/// <returns>Pointer to the SofaBeamModel GameObject</returns>
18-
[MenuItem("SofaUnity/SofaComponent/SofaBeamModel")]
19-
[MenuItem("GameObject/Create Other/SofaComponent/SofaBeamModel")]
18+
[MenuItem("Tools/SofaUnity/SofaComponent/SofaBeamModel")]
19+
[MenuItem("GameObject/Tools/SofaUnity/SofaComponent/SofaBeamModel")]
2020
public static GameObject CreateNew()
2121
{
2222
if (Selection.activeTransform != null)

Core/Scripts/Editor/Components/SofaParticlesModelEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public class SofaParticlesModelEditor : Editor
1414
/// Add SofaParticlesModel creation to the SofaUnity Menu
1515
/// </summary>
1616
/// <returns>Pointer to the SofaParticlesModel GameObject</returns>
17-
[MenuItem("SofaUnity/SofaComponent/SofaParticlesModel")]
18-
[MenuItem("GameObject/Create Other/SofaComponent/SofaParticlesModel")]
17+
[MenuItem("Tools/SofaUnity/SofaComponent/SofaParticlesModel")]
18+
[MenuItem("GameObject/Tools/SofaUnity/SofaComponent/SofaParticlesModel")]
1919
public static GameObject CreateNew()
2020
{
2121
if (Selection.activeTransform != null)

Core/Scripts/Editor/DAGNode/SofaDAGNodeEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
public class SofaDAGNodeEditor : Editor
1111
{
1212

13-
[MenuItem("SofaUnity/SofaDAGNode")]
14-
[MenuItem("GameObject/Create Other/SofaDAGNode")]
13+
[MenuItem("Tools/SofaUnity/SofaDAGNode")]
14+
[MenuItem("GameObject/Tools/SofaUnity/SofaDAGNode")]
1515
public static void CreateNew()
1616
{
1717
if (Selection.activeTransform != null)

Core/Scripts/Editor/Objects/SofaBoxEditor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public class SofaBoxEditor : SofaGridEditor
1515
/// Add SofaBox Object creation to the SofaUnity Menu
1616
/// </summary>
1717
/// <returns>Pointer to the SofaBox GameObject</returns>
18-
[MenuItem("SofaUnity/PrimitiveObject/SofaBox")]
19-
[MenuItem("GameObject/Create Other/SofaPrimitiveObject/SofaBox")]
18+
[MenuItem("Tools/SofaUnity/PrimitiveObject/SofaBox")]
19+
[MenuItem("GameObject/Tools/SofaUnity/SofaPrimitiveObject/SofaBox")]
2020
new public static GameObject CreateNew()
2121
{
2222
SofaDAGNode parentDagN = GetDAGNodeSelected();
@@ -64,8 +64,8 @@ public class SofaRigidBoxEditor : SofaGridEditor
6464
/// Add SofaRigidBox Object creation to the SofaUnity Menu
6565
/// </summary>
6666
/// <returns>Pointer to the SofaRigidBox GameObject</returns>
67-
[MenuItem("SofaUnity/PrimitiveObject/SofaRigidBox")]
68-
[MenuItem("GameObject/Create Other/SofaPrimitiveObject/SofaRigidBox")]
67+
[MenuItem("Tools/SofaUnity/PrimitiveObject/SofaRigidBox")]
68+
[MenuItem("GameObject/Tools/SofaUnity/SofaPrimitiveObject/SofaRigidBox")]
6969
new public static GameObject CreateNew()
7070
{
7171
SofaDAGNode parentDagN = GetDAGNodeSelected();

Core/Scripts/Editor/Objects/SofaCollisionPipelineEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
[CustomEditor(typeof(SofaCollisionPipeline), true)]
1313
public class SofaCollisionPipelineEditor : Editor
1414
{
15-
[MenuItem("SofaUnity/SofaCollisionPipeline")]
16-
[MenuItem("GameObject/Create Other/SofaCollisionPipeline")]
15+
[MenuItem("Tools/SofaUnity/SofaCollisionPipeline")]
16+
[MenuItem("GameObject/Tools/SofaUnity/SofaCollisionPipeline")]
1717
public static void CreateNew()
1818
{
1919
if (Selection.activeTransform == null)

Core/Scripts/Editor/Objects/SofaCylinderEditor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public class SofaCylinderEditor : SofaGridEditor
1515
/// Add SofaCylinder Object creation to the SofaUnity Menu
1616
/// </summary>
1717
/// <returns>Pointer to the SofaCylinder GameObject</returns>
18-
[MenuItem("SofaUnity/PrimitiveObject/SofaCylinder")]
19-
[MenuItem("GameObject/Create Other/SofaPrimitiveObject/SofaCylinder")]
18+
[MenuItem("Tools/SofaUnity/PrimitiveObject/SofaCylinder")]
19+
[MenuItem("GameObject/Tools/SofaUnity/SofaPrimitiveObject/SofaCylinder")]
2020
new public static GameObject CreateNew()
2121
{
2222
SofaDAGNode parentDagN = GetDAGNodeSelected();
@@ -59,8 +59,8 @@ public class SofaRigidCylinderEditor : SofaGridEditor
5959
/// Add SofaRigidCylinder Object creation to the SofaUnity Menu
6060
/// </summary>
6161
/// <returns>Pointer to the SofaRigidCylinder GameObject</returns>
62-
[MenuItem("SofaUnity/PrimitiveObject/SofaRigidCylinder")]
63-
[MenuItem("GameObject/Create Other/SofaPrimitiveObject/SofaRigidCylinder")]
62+
[MenuItem("Tools/SofaUnity/PrimitiveObject/SofaRigidCylinder")]
63+
[MenuItem("GameObject/Tools/SofaUnity/SofaPrimitiveObject/SofaRigidCylinder")]
6464
new public static GameObject CreateNew()
6565
{
6666
SofaDAGNode parentDagN = GetDAGNodeSelected();

Core/Scripts/Editor/Objects/SofaMeshObjectEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public static SofaDAGNode GetDAGNodeSelected()
5151
/// Add SofaMeshObject Object creation to the SofaUnity Menu
5252
/// </summary>
5353
/// <returns>Pointer to the SofaMeshObject GameObject</returns>
54-
[MenuItem("SofaUnity/SofaObject/SofaMeshObject")]
55-
[MenuItem("GameObject/Create Other/SofaObject/SofaMeshObject")]
54+
[MenuItem("Tools/SofaUnity/SofaObject/SofaMeshObject")]
55+
[MenuItem("GameObject/Tools/SofaUnity/SofaObject/SofaMeshObject")]
5656
public static GameObject CreateNew()
5757
{
5858
GameObject go = new GameObject("SofaMeshObject");

Core/Scripts/Editor/Objects/SofaPlaneEditor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public class SofaPlaneEditor : SofaGridEditor
1616
/// Add SofaPlane Object creation to the SofaUnity Menu
1717
/// </summary>
1818
/// <returns>Pointer to the SofaPlane GameObject</returns>
19-
[MenuItem("SofaUnity/PrimitiveObject/SofaPlane")]
20-
[MenuItem("GameObject/Create Other/SofaPrimitiveObject/SofaPlane")]
19+
[MenuItem("Tools/SofaUnity/PrimitiveObject/SofaPlane")]
20+
[MenuItem("GameObject/Tools/SofaUnity/SofaPrimitiveObject/SofaPlane")]
2121
new public static GameObject CreateNew()
2222
{
2323
SofaDAGNode parentDagN = GetDAGNodeSelected();
@@ -63,8 +63,8 @@ public class SofaRigidPlaneEditor : SofaGridEditor
6363
/// Add SofaRigidPlane Object creation to the SofaUnity Menu
6464
/// </summary>
6565
/// <returns>Pointer to the SofaRigidPlane GameObject</returns>
66-
[MenuItem("SofaUnity/PrimitiveObject/SofaRigidPlane")]
67-
[MenuItem("GameObject/Create Other/SofaPrimitiveObject/SofaRigidPlane")]
66+
[MenuItem("Tools/SofaUnity/PrimitiveObject/SofaRigidPlane")]
67+
[MenuItem("GameObject/Tools/SofaUnity/SofaPrimitiveObject/SofaRigidPlane")]
6868
new public static GameObject CreateNew()
6969
{
7070
SofaDAGNode parentDagN = GetDAGNodeSelected();

Core/Scripts/Editor/Objects/SofaSphereCollisionObjectEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public class SofaSphereCollisionObjectEditor : SofaMeshObjectEditor
1515
/// Add SofaSphereCollisionModel creation to the SofaUnity Menu
1616
/// </summary>
1717
/// <returns>Pointer to the SofaSphereCollisionModel GameObject</returns>
18-
[MenuItem("SofaUnity/SofaObject/SofaSphereCollisionObject")]
19-
[MenuItem("GameObject/Create Other/SofaObject/SofaSphereCollisionObject")]
18+
[MenuItem("Tools/SofaUnity/SofaObject/SofaSphereCollisionObject")]
19+
[MenuItem("GameObject/Tools/SofaUnity/SofaObject/SofaSphereCollisionObject")]
2020
new public static GameObject CreateNew()
2121
{
2222
if (Selection.activeTransform == null)

0 commit comments

Comments
 (0)