mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[ue4] Add setup scripts.
This commit is contained in:
parent
3b1366b04f
commit
0f595e7fbe
@ -36,5 +36,5 @@ See the [Spine Runtimes documentation](http://esotericsoftware.com/spine-documen
|
||||
|
||||
The Spine UE4 example works on all platforms supported by Unreal Engine. The samples require Unreal Engine 4.25+.
|
||||
|
||||
1. Copy the `spine-cpp` folder from this repositories root directory to your `Plugins/SpinePlugin/Sources/SpinePlugin/Public/` directory.
|
||||
1. Copy the `spine-cpp` folder from this repositories root directory to your `Plugins/SpinePlugin/Sources/SpinePlugin/Public/` directory. You can run the `setup.bat` or `setup.sh` scripts to accomplish this.
|
||||
2. Open the SpineUE4.uproject file with Unreal Editor
|
||||
|
||||
9
spine-ue4/setup.bat
Normal file
9
spine-ue4/setup.bat
Normal file
@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
rmdir Plugins\SpinePlugin\Source\SpinePlugin\Public\spine-cpp /s /q
|
||||
xcopy /E /I ..\spine-cpp\spine-cpp Plugins\SpinePlugin\Source\SpinePlugin\Public\spine-cpp || goto error
|
||||
goto done
|
||||
|
||||
:error
|
||||
@echo Couldn^'t setup spine-ue4
|
||||
|
||||
:done
|
||||
3
spine-ue4/setup.sh
Normal file
3
spine-ue4/setup.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
rm -rf Plugins/SpinePlugin/Source/SpinePlugin/Public/spine-cpp
|
||||
cp -r ../spine-cpp/spine-cpp Plugins/SpinePlugin/Source/SpinePlugin/Public/spine-cpp
|
||||
Loading…
x
Reference in New Issue
Block a user