-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*.obj filter=lfs diff=lfs merge=lfs -text | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.jpg filter=lfs diff=lfs merge=lfs -text | ||
*.jpeg filter=lfs diff=lfs merge=lfs -text | ||
*.tga filter=lfs diff=lfs merge=lfs -text | ||
*.wav filter=lfs diff=lfs merge=lfs -text | ||
*.mp3 filter=lfs diff=lfs merge=lfs -text |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/[Ll]ibrary/ | ||
/[Tt]emp/ | ||
/[Oo]bj/ | ||
/[Bb]uild/ | ||
/[Bb]uilds/ | ||
/Assets/AssetStoreTools* | ||
|
||
# Visual Studio 2015 cache directory | ||
/.vs/ | ||
|
||
# Autogenerated VS/MD/Consulo solution and project files | ||
ExportedObj/ | ||
.consulo/ | ||
*.csproj | ||
*.unityproj | ||
*.sln | ||
*.suo | ||
*.tmp | ||
*.user | ||
*.userprefs | ||
*.pidb | ||
*.booproj | ||
*.svd | ||
*.pdb | ||
|
||
# Unity3D generated meta files | ||
*.pidb.meta | ||
|
||
# Unity3D Generated File On Crash Reports | ||
sysinfo.txt | ||
|
||
# Builds | ||
*.apk | ||
*.unitypackage |
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.
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.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using UnityEngine; | ||
using UnityEditor; | ||
|
||
namespace Battlehub.Integration | ||
{ | ||
public partial class CommandsPanel : EditorWindow | ||
{ | ||
partial void DoMeshDeformerSection(); | ||
partial void DoMeshToolsSection(); | ||
partial void OnGUI(); | ||
public Vector2 scrollPosition; | ||
public const string IconPath = "Assets/Battlehub/Integration/Editor/icon.png"; | ||
|
||
partial void OnGUI() | ||
{ | ||
scrollPosition = GUILayout.BeginScrollView(scrollPosition); | ||
|
||
GUILayout.Label("Mesh", EditorStyles.boldLabel); | ||
DoMeshToolsSection(); | ||
|
||
GUI.enabled = true; | ||
GUILayout.Label("Mesh Deformer", EditorStyles.boldLabel); | ||
DoMeshDeformerSection(); | ||
GUILayout.EndScrollView(); | ||
} | ||
|
||
private void OnSelectionChanged() | ||
{ | ||
Repaint(); | ||
} | ||
|
||
} | ||
|
||
} |
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.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using UnityEngine; | ||
|
||
namespace Battlehub.Integration | ||
{ | ||
|
||
public class IntegrationArgs | ||
{ | ||
public GameObject GameObject; | ||
public Mesh Mesh; | ||
public bool Cancel; | ||
|
||
public IntegrationArgs() | ||
{ | ||
|
||
} | ||
|
||
public IntegrationArgs(GameObject gameObject) | ||
{ | ||
GameObject = gameObject; | ||
} | ||
|
||
public IntegrationArgs(GameObject gameObject, Mesh mesh) | ||
{ | ||
GameObject = gameObject; | ||
Mesh = mesh; | ||
} | ||
} | ||
|
||
public delegate void IntegrationHandler(IntegrationArgs args); | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using UnityEngine; | ||
|
||
namespace Battlehub.Integration | ||
{ | ||
public static class MeshCombinerIntegration | ||
{ | ||
public static event IntegrationHandler Combined; | ||
public static event IntegrationHandler BeginEditPivot; | ||
|
||
public static void RaiseCombined(GameObject go, Mesh mesh) | ||
{ | ||
if(Combined != null) | ||
{ | ||
Combined(new IntegrationArgs(go, mesh)); | ||
} | ||
} | ||
|
||
public static bool RaiseBeginEditPivot(GameObject go, Mesh mesh) | ||
{ | ||
if(BeginEditPivot != null) | ||
{ | ||
IntegrationArgs args = new IntegrationArgs(go, mesh); | ||
BeginEditPivot(args); | ||
return !args.Cancel; | ||
} | ||
|
||
return true; | ||
} | ||
|
||
|
||
} | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using UnityEngine; | ||
|
||
namespace Battlehub.Integration | ||
{ | ||
public static class MeshDeformerIntegration | ||
{ | ||
public static event IntegrationHandler BeforeDeform; | ||
|
||
public static bool RaiseBeforeDeform(GameObject gameObject, Mesh mesh) | ||
{ | ||
if(BeforeDeform != null) | ||
{ | ||
IntegrationArgs args = new IntegrationArgs(gameObject, mesh); | ||
BeforeDeform(args); | ||
return !args.Cancel; | ||
} | ||
|
||
return true; | ||
} | ||
} | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using UnityEngine; | ||
namespace Battlehub.Integration | ||
{ | ||
public static class WiresIntegration | ||
{ | ||
public static event IntegrationHandler WireParamsChanged; | ||
public static event IntegrationHandler BeforeWireCreated; | ||
|
||
public static bool RaiseBeforeWireCreated(GameObject gameObject, Mesh mesh) | ||
{ | ||
if (BeforeWireCreated != null) | ||
{ | ||
IntegrationArgs args = new IntegrationArgs(gameObject, mesh); | ||
BeforeWireCreated(args); | ||
return !args.Cancel; | ||
} | ||
|
||
return true; | ||
} | ||
|
||
public static void RaiseWireParamsChanged(GameObject gameObject, Mesh mesh) | ||
{ | ||
if (WireParamsChanged != null) | ||
{ | ||
WireParamsChanged(new IntegrationArgs(gameObject, mesh)); | ||
} | ||
} | ||
} | ||
} |
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.