Skip to content

Commit

Permalink
organized assets for easy package export (only Serial folder)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Rossel committed Jan 28, 2014
1 parent b63c049 commit 727bed3
Show file tree
Hide file tree
Showing 11 changed files with 154 additions and 124 deletions.
5 changes: 4 additions & 1 deletion Assets/Serial/Demo/Last Value.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f66c2cce04c1f4a21a3287582dde7774, type: 3}
m_Name:
m_EditorClassIdentifier:
bufferLines: 0
NotifyData: 0
NotifyLines: 0
RememberLines: 0
NotifyValues: 1
--- !u!132 &13200000
GUIText:
m_ObjectHideFlags: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f66c2cce04c1f4a21a3287582dde7774, type: 3}
m_Name:
m_EditorClassIdentifier:
bufferLines: 0
NotifyData: 0
NotifyLines: 1
RememberLines: 0
NotifyValues: 0
--- !u!132 &13200000
GUIText:
m_ObjectHideFlags: 1
Expand All @@ -65,7 +68,7 @@ GUIText:
m_Alignment: 0
m_PixelOffset: {x: 0, y: 0}
m_LineSpacing: 1
m_TabSize: 4
m_TabSize: 60
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_Material: {fileID: 0}
m_FontSize: 0
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Assets/LastLine.cs → Assets/Serial/Demo/LastLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class LastLine : MonoBehaviour {

void OnSerialLine(string line) {
guiText.text = "Last line: " + line;
guiText.text = "Last line:\t" + line;
}

}
File renamed without changes.
91 changes: 21 additions & 70 deletions Assets/Serial/Demo/Line events.unity
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,6 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 100000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_Name
value: Last Value 0
Expand Down Expand Up @@ -161,7 +145,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f66c2cce04c1f4a21a3287582dde7774, type: 3}
m_Name:
m_EditorClassIdentifier:
bufferLines: 0
NotifyData: 0
NotifyLines: 0
RememberLines: 0
NotifyValues: 1
--- !u!132 &1073239303
GUIText:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -216,22 +203,6 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 100000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_Name
value: Last Value 1
Expand Down Expand Up @@ -328,7 +299,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f66c2cce04c1f4a21a3287582dde7774, type: 3}
m_Name:
m_EditorClassIdentifier:
bufferLines: 0
NotifyData: 0
NotifyLines: 0
RememberLines: 0
NotifyValues: 1
--- !u!132 &1516296171
GUIText:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -383,22 +357,6 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 100000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_Name
value: Last Value 3
Expand Down Expand Up @@ -483,22 +441,6 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 100000, guid: 72db36994b04f401a8f2e1262572fb77, type: 2}
propertyPath: m_Name
value: Last Value 2
Expand Down Expand Up @@ -554,7 +496,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f66c2cce04c1f4a21a3287582dde7774, type: 3}
m_Name:
m_EditorClassIdentifier:
bufferLines: 0
NotifyData: 0
NotifyLines: 1
RememberLines: 0
NotifyValues: 0
--- !u!132 &1815524344
GUIText:
m_ObjectHideFlags: 0
Expand All @@ -569,7 +514,7 @@ GUIText:
m_Alignment: 0
m_PixelOffset: {x: 0, y: 0}
m_LineSpacing: 1
m_TabSize: 4
m_TabSize: 60
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_Material: {fileID: 0}
m_FontSize: 0
Expand Down Expand Up @@ -713,7 +658,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f66c2cce04c1f4a21a3287582dde7774, type: 3}
m_Name:
m_EditorClassIdentifier:
bufferLines: 0
NotifyData: 0
NotifyLines: 0
RememberLines: 0
NotifyValues: 1
--- !u!132 &2021558608
GUIText:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -792,7 +740,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f66c2cce04c1f4a21a3287582dde7774, type: 3}
m_Name:
m_EditorClassIdentifier:
bufferLines: 0
NotifyData: 0
NotifyLines: 0
RememberLines: 0
NotifyValues: 1
--- !u!132 &2070642678
GUIText:
m_ObjectHideFlags: 0
Expand Down
8 changes: 4 additions & 4 deletions Assets/Serial/Demo/SerialValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
public class SerialValue : MonoBehaviour {

/// <summary>
/// The column from which to show the value.
/// The column (0 based) from which to show the value.
/// </summary>
public int Column = 0;

void OnSerialValue(string value, int col) {
if (col == Column) {
guiText.text = "Last value [" + Column + "]: " + value;
void OnSerialValues(string[] values) {
if (Column < values.Length) {
guiText.text = "Last value [" + Column + "]: " + values[Column];
}
}
}
Loading

0 comments on commit 727bed3

Please sign in to comment.