public void Initialize() { ApplicationController.Instance.Library.RegisterCreator( new GeneratorItem( () => "Velocity Paint".Localize(), async() => await VelocityPaintObject3D.Create()) { DateCreated = new DateTime(30) }); }
public static async Task <VelocityPaintObject3D> Create() { var item = new VelocityPaintObject3D(); item.Children.Add(new ImageObject3D() { AssetPath = AggContext.StaticData.ToAssetPath(Path.Combine("Images", "mh-logo.png")) }); await item.Rebuild(); return(item); }