Initial commit
This commit is contained in:
168
skills/assets/unity-package/ThirdParty/websocket-sharp/README.md
vendored
Normal file
168
skills/assets/unity-package/ThirdParty/websocket-sharp/README.md
vendored
Normal file
@@ -0,0 +1,168 @@
|
||||
# websocket-sharp DLL Installation
|
||||
|
||||
Unity Editor Toolkit requires websocket-sharp for WebSocket communication.
|
||||
|
||||
## Installation Steps
|
||||
|
||||
### Step 1: Download websocket-sharp
|
||||
|
||||
**Option A: Download Pre-built DLL (Recommended)**
|
||||
|
||||
1. Go to: https://github.com/sta/websocket-sharp/releases
|
||||
2. Download the latest release (e.g., `websocket-sharp.zip` or `websocket-sharp.dll`)
|
||||
3. Extract if needed
|
||||
|
||||
**Direct Download Link:**
|
||||
- Latest stable: https://github.com/sta/websocket-sharp/releases/download/1.0.3-rc11/websocket-sharp.dll
|
||||
|
||||
**Option B: Build from Source**
|
||||
|
||||
```bash
|
||||
git clone https://github.com/sta/websocket-sharp.git
|
||||
cd websocket-sharp/websocket-sharp
|
||||
# Build with your C# compiler or Visual Studio
|
||||
```
|
||||
|
||||
### Step 2: Add DLL to Unity Project
|
||||
|
||||
**Copy the DLL to this exact location:**
|
||||
|
||||
```
|
||||
Packages/com.devgom.unity-editor-toolkit/ThirdParty/websocket-sharp/websocket-sharp.dll
|
||||
```
|
||||
|
||||
**Full Path Examples:**
|
||||
|
||||
**Windows:**
|
||||
```
|
||||
D:\YourUnityProject\Packages\com.devgom.unity-editor-toolkit\ThirdParty\websocket-sharp\websocket-sharp.dll
|
||||
```
|
||||
|
||||
**macOS/Linux:**
|
||||
```
|
||||
/Users/YourName/UnityProjects/YourProject/Packages/com.devgom.unity-editor-toolkit/ThirdParty/websocket-sharp/websocket-sharp.dll
|
||||
```
|
||||
|
||||
### Step 3: Configure Import Settings in Unity
|
||||
|
||||
1. Unity will automatically detect the DLL
|
||||
2. Select `websocket-sharp.dll` in Project window
|
||||
3. In Inspector, verify settings:
|
||||
- **Any Platform**: ✓ Checked
|
||||
- **Editor**: ✓ Include
|
||||
- **Standalone**: ✗ Exclude (Editor only)
|
||||
|
||||
4. Click **Apply**
|
||||
|
||||
### Step 4: Verify Installation
|
||||
|
||||
**Method 1: Check Console**
|
||||
|
||||
After adding the DLL, Unity should not show any import errors. Check Console (Ctrl+Shift+C) for:
|
||||
- ✓ No "missing assembly" warnings
|
||||
- ✓ No websocket-sharp related errors
|
||||
|
||||
**Method 2: Test Server**
|
||||
|
||||
1. Create GameObject → Add `UnityEditorServer` component
|
||||
2. Enter Play Mode
|
||||
3. Console should show: `✓ Unity Editor Server started on ws://127.0.0.1:9500`
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Error: "Assembly 'websocket-sharp' not found"
|
||||
|
||||
**Solution:**
|
||||
- Verify DLL is in correct location: `ThirdParty/websocket-sharp/websocket-sharp.dll`
|
||||
- Restart Unity Editor
|
||||
- Reimport package: Right-click package → Reimport
|
||||
|
||||
### Error: "Could not load file or assembly"
|
||||
|
||||
**Solution:**
|
||||
- Check DLL platform settings (Any Platform should be checked)
|
||||
- Try different websocket-sharp version
|
||||
- Ensure you're using .NET Framework 4.x (not .NET Standard)
|
||||
|
||||
### DLL Not Appearing in Project Window
|
||||
|
||||
**Solution:**
|
||||
1. Close Unity
|
||||
2. Delete `Library/` folder in your project
|
||||
3. Reopen Unity (will reimport all assets)
|
||||
|
||||
### Unity 2020.3+ Compatibility
|
||||
|
||||
websocket-sharp 1.0.3-rc11 is compatible with:
|
||||
- Unity 2020.3 LTS
|
||||
- Unity 2021.3 LTS
|
||||
- Unity 2022.3 LTS
|
||||
- Unity 6 (2023.2+)
|
||||
|
||||
## Alternative: NuGet for Unity
|
||||
|
||||
If you have NuGet for Unity installed:
|
||||
|
||||
1. Install NuGet for Unity: https://github.com/GlitchEnzo/NuGetForUnity
|
||||
2. Open NuGet window: `NuGet → Manage NuGet Packages`
|
||||
3. Search: "websocket-sharp"
|
||||
4. Click **Install**
|
||||
|
||||
**Advantages:**
|
||||
- Automatic dependency management
|
||||
- Easy updates
|
||||
- No manual DLL copying
|
||||
|
||||
**Disadvantages:**
|
||||
- Requires additional package (NuGet for Unity)
|
||||
- Slightly larger project size
|
||||
|
||||
## File Structure After Installation
|
||||
|
||||
```
|
||||
Packages/com.devgom.unity-editor-toolkit/
|
||||
├── ThirdParty/
|
||||
│ └── websocket-sharp/
|
||||
│ ├── websocket-sharp.dll ← You add this
|
||||
│ ├── websocket-sharp.dll.meta ← Unity creates this
|
||||
│ └── README.md ← This file
|
||||
├── Runtime/
|
||||
├── Editor/
|
||||
└── ...
|
||||
```
|
||||
|
||||
## Verification Checklist
|
||||
|
||||
- [ ] DLL downloaded from official source
|
||||
- [ ] DLL placed in `ThirdParty/websocket-sharp/` folder
|
||||
- [ ] Unity detected and imported DLL (no Console errors)
|
||||
- [ ] Import settings configured (Any Platform, Editor only)
|
||||
- [ ] Test server starts successfully in Play Mode
|
||||
- [ ] No assembly resolution errors in Console
|
||||
|
||||
## License Note
|
||||
|
||||
websocket-sharp is licensed under the MIT License.
|
||||
|
||||
**websocket-sharp License:**
|
||||
```
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2010-2021 sta.blockhead
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
```
|
||||
|
||||
## Support
|
||||
|
||||
For issues with:
|
||||
- **websocket-sharp**: https://github.com/sta/websocket-sharp/issues
|
||||
- **Unity Editor Toolkit**: https://github.com/Dev-GOM/claude-code-marketplace/issues
|
||||
7
skills/assets/unity-package/ThirdParty/websocket-sharp/README.md.meta
vendored
Normal file
7
skills/assets/unity-package/ThirdParty/websocket-sharp/README.md.meta
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dafe975ce222be046865245222e435a4
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
55
skills/assets/unity-package/ThirdParty/websocket-sharp/install.bat
vendored
Normal file
55
skills/assets/unity-package/ThirdParty/websocket-sharp/install.bat
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
@echo off
|
||||
REM Unity Editor Toolkit - websocket-sharp Installer (Windows)
|
||||
REM This script downloads websocket-sharp.dll automatically
|
||||
|
||||
echo =========================================
|
||||
echo Unity Editor Toolkit
|
||||
echo websocket-sharp Installer
|
||||
echo =========================================
|
||||
echo.
|
||||
|
||||
REM Check if DLL already exists
|
||||
if exist websocket-sharp.dll (
|
||||
echo [INFO] websocket-sharp.dll already exists!
|
||||
echo.
|
||||
choice /C YN /M "Do you want to re-download? (Y/N)"
|
||||
if errorlevel 2 goto :end
|
||||
if errorlevel 1 goto :download
|
||||
) else (
|
||||
goto :download
|
||||
)
|
||||
|
||||
:download
|
||||
echo [INFO] Downloading websocket-sharp.dll from GitHub...
|
||||
echo.
|
||||
|
||||
REM Download using PowerShell
|
||||
powershell -Command "& {Invoke-WebRequest -Uri 'https://github.com/sta/websocket-sharp/releases/download/1.0.3-rc11/websocket-sharp.dll' -OutFile 'websocket-sharp.dll'}"
|
||||
|
||||
if exist websocket-sharp.dll (
|
||||
echo.
|
||||
echo [SUCCESS] websocket-sharp.dll downloaded successfully!
|
||||
echo.
|
||||
echo File location: %CD%\websocket-sharp.dll
|
||||
echo.
|
||||
echo Next steps:
|
||||
echo 1. Return to Unity Editor
|
||||
echo 2. Unity will automatically detect the DLL
|
||||
echo 3. Check Console for import confirmation
|
||||
echo 4. Add UnityEditorServer component to a GameObject
|
||||
echo 5. Enter Play Mode to start the server
|
||||
echo.
|
||||
) else (
|
||||
echo.
|
||||
echo [ERROR] Download failed!
|
||||
echo.
|
||||
echo Please download manually from:
|
||||
echo https://github.com/sta/websocket-sharp/releases
|
||||
echo.
|
||||
echo And save as: %CD%\websocket-sharp.dll
|
||||
echo.
|
||||
)
|
||||
|
||||
:end
|
||||
echo.
|
||||
pause
|
||||
7
skills/assets/unity-package/ThirdParty/websocket-sharp/install.bat.meta
vendored
Normal file
7
skills/assets/unity-package/ThirdParty/websocket-sharp/install.bat.meta
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 67927b7e35b838740b9bc5c5fc684b50
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
67
skills/assets/unity-package/ThirdParty/websocket-sharp/install.sh
vendored
Normal file
67
skills/assets/unity-package/ThirdParty/websocket-sharp/install.sh
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
#!/bin/bash
|
||||
# Unity Editor Toolkit - websocket-sharp Installer (macOS/Linux)
|
||||
# This script downloads websocket-sharp.dll automatically
|
||||
|
||||
echo "========================================="
|
||||
echo "Unity Editor Toolkit"
|
||||
echo "websocket-sharp Installer"
|
||||
echo "========================================="
|
||||
echo ""
|
||||
|
||||
# Get script directory
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
DLL_PATH="$SCRIPT_DIR/websocket-sharp.dll"
|
||||
|
||||
# Check if DLL already exists
|
||||
if [ -f "$DLL_PATH" ]; then
|
||||
echo "[INFO] websocket-sharp.dll already exists!"
|
||||
echo ""
|
||||
read -p "Do you want to re-download? (y/n) " -n 1 -r
|
||||
echo ""
|
||||
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "[INFO] Downloading websocket-sharp.dll from GitHub..."
|
||||
echo ""
|
||||
|
||||
# Download using curl
|
||||
if command -v curl &> /dev/null; then
|
||||
curl -L -o "$DLL_PATH" "https://github.com/sta/websocket-sharp/releases/download/1.0.3-rc11/websocket-sharp.dll"
|
||||
elif command -v wget &> /dev/null; then
|
||||
wget -O "$DLL_PATH" "https://github.com/sta/websocket-sharp/releases/download/1.0.3-rc11/websocket-sharp.dll"
|
||||
else
|
||||
echo "[ERROR] Neither curl nor wget is available!"
|
||||
echo ""
|
||||
echo "Please install curl or wget, or download manually from:"
|
||||
echo "https://github.com/sta/websocket-sharp/releases"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify download
|
||||
if [ -f "$DLL_PATH" ]; then
|
||||
echo ""
|
||||
echo "[SUCCESS] websocket-sharp.dll downloaded successfully!"
|
||||
echo ""
|
||||
echo "File location: $DLL_PATH"
|
||||
echo ""
|
||||
echo "Next steps:"
|
||||
echo "1. Return to Unity Editor"
|
||||
echo "2. Unity will automatically detect the DLL"
|
||||
echo "3. Check Console for import confirmation"
|
||||
echo "4. Add UnityEditorServer component to a GameObject"
|
||||
echo "5. Enter Play Mode to start the server"
|
||||
echo ""
|
||||
else
|
||||
echo ""
|
||||
echo "[ERROR] Download failed!"
|
||||
echo ""
|
||||
echo "Please download manually from:"
|
||||
echo "https://github.com/sta/websocket-sharp/releases"
|
||||
echo ""
|
||||
echo "And save as: $DLL_PATH"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
7
skills/assets/unity-package/ThirdParty/websocket-sharp/install.sh.meta
vendored
Normal file
7
skills/assets/unity-package/ThirdParty/websocket-sharp/install.sh.meta
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f48e5d18b0a480649afd4f3c29bb6df3
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
skills/assets/unity-package/ThirdParty/websocket-sharp/websocket-sharp.dll
vendored
Normal file
BIN
skills/assets/unity-package/ThirdParty/websocket-sharp/websocket-sharp.dll
vendored
Normal file
Binary file not shown.
2
skills/assets/unity-package/ThirdParty/websocket-sharp/websocket-sharp.dll.meta
vendored
Normal file
2
skills/assets/unity-package/ThirdParty/websocket-sharp/websocket-sharp.dll.meta
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a1a2ec8e313f23b4f8ff1d791e7558eb
|
||||
Reference in New Issue
Block a user