- burst2flame
- Posts: 11
- Joined:
Sharing Code Between Blend and Unity
Hi!
I'd prefer to be able to define my DataContext class in one place and use it in both unity and in the blend file. Is this possible? If so, how is this accomplished.
I'd prefer to be able to define my DataContext class in one place and use it in both unity and in the blend file. Is this possible? If so, how is this accomplished.
-
sfernandez
Site Admin
- Posts: 3093
- Joined:
Re: Sharing Code Between Blend and Unity
Hi, you can share the same viewmodel (or code-behind) classes for Blend and Unity, you just need to use some conditional compilation to distinguish between the different types in WPF and Noesis/Unity. We use that approach in some of our examples, like in here: https://github.com/Noesis/Tutorials/blo ... ewModel.cs
Who is online
Users browsing this forum: Ahrefs [Bot] and 5 guests