1 | This is a RenderingPlugin for Windows Store Apps. |
---|
2 | There's already prebuilt plugin version in Unity project. (Assets\Plugins\Metro\<SDK>\<Platform>) |
---|
3 | Also - precompiled shaders are located here - UnityProject\Assets\StreamingAssets. |
---|
4 | Also checkout - UnityProject\Assets\Editor\MyBuildPostprocessor.cs, it contains some bits, how Windows Store Apps source files are modified after building from Editor. |
---|
5 | |
---|
6 | If you want to recompile RenderingPlugin or shaders it's simply enough to hit Build Solution, and both RenderingPlugin.dll and precompiled shaders will be copied to appropriate folders in Unity project. |
---|
7 | For more information, go to Project->Properties->BuildEvents->Post-Build event. |
---|
8 | |
---|
9 | |
---|
10 | It's also possible to setup RenderingPlugin project for debugging, do the following. |
---|
11 | * Open UnityProject |
---|
12 | * Build Windows Store Apps, it doesn't matter which project type you choose, but in this case choose XAML C# |
---|
13 | * Open generated solution |
---|
14 | * Right click on solution in Solution Explorer |
---|
15 | * Add->Existing Project, add RenderingPlugin\<WSAVisualStudio2012 - for SDK 8.0, WSAVisualStudio2013 - for SDK 8.1>\RenderingPlugin.vcxproj |
---|
16 | * Right click on "Plugin Render API Example", Project Dependencies, select RenderingPlugin |
---|
17 | * That's it, for ex., place a breakpoint in CreateD3D11Resources |
---|
18 | |
---|
19 | * You can now change shaders and sources in RenderingPlugin project, and test it on the fly. |
---|
20 | * Note: you can also debug RenderingPlugin source files |
---|
21 | |
---|
22 | |
---|
23 | |
---|