Skip to content

Commit 9b81d21

Browse files
committed
Added all scripts to VirtualFileSystem namespace
Added all scripts into the VirtualFileSystem namespace to avoid possible conflicts when importing VFS package into projects.
1 parent 195bfd5 commit 9b81d21

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

VFS/Examples/Ex01WorldController.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
using VRC.SDKBase;
55
using VRC.Udon;
66

7+
namespace VirtualFileSystem
8+
{
79
public class Ex01WorldController : UdonSharpBehaviour
810
{
911
public UdonBehaviour FileManager;
@@ -102,7 +104,7 @@ byte[] Int32ToByteArray(int num)
102104
return res;
103105
}
104106
}
105-
107+
}
106108

107109
// int maskedNum = 0;
108110
// maskedNum = intVar >> 24;

VFS/Examples/Ex02WorldController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
using VRC.Udon;
66
using UnityEngine.UI;
77

8+
namespace VirtualFileSystem
9+
{
810
public class Ex02WorldController : UdonSharpBehaviour
911
{
1012
public UdonBehaviour FileManager;
@@ -157,3 +159,4 @@ byte[] Int32ToByteArray(int num)
157159
return res;
158160
}
159161
}
162+
}

VFS/Examples/Ex03WorldController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
using VRC.Udon;
66
using UnityEngine.UI;
77

8+
namespace VirtualFileSystem
9+
{
810
public class Ex03WorldController : UdonSharpBehaviour
911
{
1012
public UdonBehaviour FileManager;
@@ -219,3 +221,4 @@ byte[] DecryptByteArray(byte[] dataArr)
219221
return dataArr;
220222
}
221223
}
224+
}

VFS/USharpPrograms/ToggleGroupScript.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
using VRC.Udon;
66
using UnityEngine.UI;
77

8+
namespace VirtualFileSystem
9+
{
810
public class ToggleGroupScript : UdonSharpBehaviour
911
{
1012
public Toggle[] toggles;
@@ -53,3 +55,4 @@ void ResetToggleGroup()
5355
selectedToggleIndex = 0;
5456
}
5557
}
58+
}

0 commit comments

Comments
 (0)