jungrok5
Topic Author
Posts: 3
Joined: 19 Jan 2014, 09:51

Blend compile error

20 Jan 2014, 04:04

An error occurs if you try to compile the Blend. (Unity3d package)
(Assets\NoesisGUI\Samples\Commands)
Attachments
compileerror1.png
compileerror.png
 
User avatar
sfernandez
Site Admin
Posts: 1920
Joined: 22 Dec 2011, 19:20

Re: Blend compile error

20 Jan 2014, 10:50

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
using System;

namespace Noesis
{
	public class ViewModel
	{
		public ViewModel()
		{
			// Insert code required on object creation below this point.
		}
	}
}
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.
 
User avatar
jsantos
Site Admin
Posts: 2909
Joined: 20 Jan 2012, 17:18
Contact:

Re: Blend compile error

20 Jan 2014, 11:58

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 1 guest