Search found 90 matches
- 17 Jul 2015, 08:28
- Forum: General Discussion
- Replies: 4
- Views: 2957
Set Data of path in code
How do I do this in Unity C#? Path arcPath = new Path(); arcPath.Stroke = new SolidColorBrush(Colors.Blue); arcPath.StrokeThickness = 1; arcPath.Data = Geometry.Parse("M 80,200 A 100,50 45 1 0 100,50 Z"); The Data part has to be changed dynamically. Parse is not supported. Edit: This works...
- 17 Jul 2015, 08:11
- Forum: General Discussion
- Replies: 3
- Views: 2188
Re: dynamic lines
Ok, I got it to work: using UnityEngine; using System.Collections; using Noesis; public class ND : MonoBehaviour { Line line; void Start (){ NoesisGUIPanel panel = GetComponent<NoesisGUIPanel>(); FrameworkElement root = panel.GetContent(); root.Parent.UseLayoutRounding = false; Noesis.Canvas canvas ...
- 17 Jul 2015, 02:19
- Forum: General Discussion
- Replies: 2
- Views: 2475
RenderTransform read and write
In my xaml code I have a RenderTransform which looks like this: <Canvas Name="g4709" RenderTransform="0,1,-1,0,868.716430664063,217.774169921875"> How do I read and write the translation and rotation values in Unity C#? Edit: presumably it is something like this: UIElement pitch ...
- 16 Jul 2015, 16:32
- Forum: General Discussion
- Replies: 3
- Views: 2188
dynamic lines
In Unity, what would be the best way to procedurally add dynamic lines to an xaml file? Some lines in the xaml file will be static (or just rotated), but others must be fully generated at runtime. This is for aircraft display simulation: https://www.youtube.com/watch?v=hlNAIt1NeO4 I suppose it is th...
- 03 Apr 2015, 02:16
- Forum: General Discussion
- Replies: 7
- Views: 3455
Re: XAML editor
Here are some screenshots
- 17 Mar 2015, 05:49
- Forum: General Discussion
- Replies: 7
- Views: 3455
Re: XAML editor
Using Inkscape with ViewerSVG (svg to xaml converter) now works perfectly fine
Finally some proper svg support. It would be awesome though if you can add build in support for svg.
Finally some proper svg support. It would be awesome though if you can add build in support for svg.
- 17 Mar 2015, 05:45
- Forum: General Discussion
- Replies: 7
- Views: 7089
Re: Rotation center with XAML export
I now use the ViewerSVG XAML converter which correctly exports RenderTransformOrigin.
viewtopic.php?f=3&t=660
viewtopic.php?f=3&t=660
- 14 Mar 2015, 08:43
- Forum: General Discussion
- Replies: 2
- Views: 2379
Re: SVG to XAML converter
That only works for simple SVG files and in that case you better use InkScape. For example, the output from the XPS printer doesn't contain RenderTransformOrigin so dynamic rotations will not display correctly. You can't blame it for that because this requires complex logic which converts transform-...
- 11 Mar 2015, 10:57
- Forum: General Discussion
- Replies: 2
- Views: 2379
SVG to XAML converter
I finally found an SVG to XAML converter which just works, called ViewerSvg. It even supports offset rotation points (RenderTransformOrigin) which none of the other converters out there can handle. The author is also very quick to fix any issues you have so if you want to have something fixed, just ...
- 03 Mar 2015, 18:04
- Forum: General Discussion
- Replies: 2
- Views: 1787