Blend compile error
An error occurs if you try to compile the Blend. (Unity3d package)
(Assets\NoesisGUI\Samples\Commands)
(Assets\NoesisGUI\Samples\Commands)
-
-
sfernandez
Site Admin
- Posts: 3203
- Joined:
Re: Blend compile error
Hi,
Maybe it is not well explained in our documentation, but our Unity3D package is not intended to be used directly in Blend. The dll provided with the package is a native library meant to be used only with Unity3D as a native plugin.
You can use Blend to view/edit your own xaml files, or the ones from our samples. But some of our samples contain references to classes that are only defined in Unity, so if you want to view/edit the associate xaml, you will have to create the corresponding class in Blend.
For example, if you want to view Commands sample in Blend you have to create the following class (right click project name in Blend, and select 'Add New Item...' > 'Class'):
ViewModel.cs
Next you have to link the Commands.xaml as explained in 'First contact with Blend' tutorial, in section 'Add XAMLs to project'.
And after 'Build' Blend project, you should be able to view and edit the xaml, and instantly see changes in Unity when you click Play.
Maybe it is not well explained in our documentation, but our Unity3D package is not intended to be used directly in Blend. The dll provided with the package is a native library meant to be used only with Unity3D as a native plugin.
You can use Blend to view/edit your own xaml files, or the ones from our samples. But some of our samples contain references to classes that are only defined in Unity, so if you want to view/edit the associate xaml, you will have to create the corresponding class in Blend.
For example, if you want to view Commands sample in Blend you have to create the following class (right click project name in Blend, and select 'Add New Item...' > 'Class'):
ViewModel.cs
Code: Select all
using System;
namespace Noesis
{
public class ViewModel
{
public ViewModel()
{
// Insert code required on object creation below this point.
}
}
}
And after 'Build' Blend project, you should be able to view and edit the xaml, and instantly see changes in Unity when you click Play.
Re: Blend compile error
In this line, we have a project in github (https://github.com/Noesis/noesisgui-contrib) with several blend dummy classes. We could improve it adding more dummy classes to improve the experience. That way the sample you mention could compile without errors.
Who is online
Users browsing this forum: No registered users and 7 guests