Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.DS_Store
.AppleDouble
.LSOverride

.idea
# Icon must end with two \r
Icon

Expand Down
7 changes: 3 additions & 4 deletions Runtime/Scripts/SBCustomTypeAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using UnityEngine;
#if UNITY_EDITOR
using UnityEngine;
using System;
using System.Collections;

Expand All @@ -20,6 +21,4 @@ public SBCustomTypeAttribute(string conditionalSourceField, bool inverse)
}

}



#endif
5 changes: 4 additions & 1 deletion Runtime/Scripts/SBCustomTypePropertyDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using UnityEngine;
#if UNITY_EDITOR

using UnityEngine;
using UnityEditor;
using System.Collections.Generic;

Expand Down Expand Up @@ -86,3 +88,4 @@ private bool GetConditionalHideAttributeResult(SBCustomTypeAttribute condHAtt, S
return enabled;
}
}
#endif
4 changes: 4 additions & 0 deletions Runtime/Scripts/SpacebrewClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ public class Publisher
{
public string name;
public type pubType;
#if UNITY_EDITOR
[SBCustomType("pubType", false)]
#endif
public string customType;
//public string defaultValue;

Expand All @@ -50,7 +52,9 @@ public class Subscriber
{
public string name;
public type subType;
#if UNITY_EDITOR
[SBCustomType("subType", false)]
#endif
public string customType;
public SpacebrewMessageEvent onReceived;

Expand Down