protected override IEnumerable <PropertyDescriptor> GetProperties() { var properties = new List <PropertyDescriptor> { PropertyDescriptorFactory.Create(EmitterType.GetProperty("Radius"), new CategoryAttribute("Cylinder Emitter"), new DisplayNameAttribute("Radius"), new DescriptionAttribute("Gets or sets the radius of the cylinder.")), PropertyDescriptorFactory.Create(EmitterType.GetProperty("Height"), new CategoryAttribute("Cylinder Emitter"), new DisplayNameAttribute("Height"), new DescriptionAttribute("Gets or sets the height of the cylinder.")), PropertyDescriptorFactory.Create(EmitterType.GetProperty("Shell"), new CategoryAttribute("Cylinder Emitter"), new DisplayNameAttribute("Shell"), new DescriptionAttribute("Gets or sets a value indicating whether particles should be released only on the edge of the cylinder.")), PropertyDescriptorFactory.Create(EmitterType.GetProperty("Radiate"), new CategoryAttribute("Cylinder Emitter"), new DisplayNameAttribute("Radiate"), new DescriptionAttribute("Gets or sets a value indicating whether particles should radiate out from the centre column of the cylinder.")), }; return(base.GetProperties().Concat(properties)); }
protected override IEnumerable <PropertyDescriptor> GetProperties() { var properties = new List <PropertyDescriptor> { PropertyDescriptorFactory.Create(EmitterType.GetProperty("Width"), new CategoryAttribute("Box Emitter"), new DisplayNameAttribute("Width"), new DescriptionAttribute("Gets or sets the width of the box.")), PropertyDescriptorFactory.Create(EmitterType.GetProperty("Height"), new CategoryAttribute("Box Emitter"), new DisplayNameAttribute("Height"), new DescriptionAttribute("Gets or sets the height of the box.")), PropertyDescriptorFactory.Create(EmitterType.GetProperty("Depth"), new CategoryAttribute("Box Emitter"), new DisplayNameAttribute("Depth"), new DescriptionAttribute("Gets or sets the depth of the box.")), PropertyDescriptorFactory.Create(EmitterType.GetProperty("Rotation"), new CategoryAttribute("Box Emitter"), new DisplayNameAttribute("Rotation"), new DescriptionAttribute("Gets or sets the rotation vector of the box.")), }; return(base.GetProperties().Concat(properties)); }
protected override IEnumerable <PropertyDescriptor> GetProperties() { var properties = new List <PropertyDescriptor> { PropertyDescriptorFactory.Create(EmitterType.GetProperty("ConstrainToPlane"), new CategoryAttribute("Plane Emitter"), new DisplayNameAttribute("Constrain To Plane"), new DescriptionAttribute("Should random forces keep the particle in the XY plane or allow it to move in all 3. Can be used in 2d or 3d. In 2d this will keep particles in the same plane as the emitter. In 3d it keeps particles radiating in a planar fashion.")), }; return(base.GetProperties().Concat(properties)); }
protected override IEnumerable <PropertyDescriptor> GetProperties() { var properties = new List <PropertyDescriptor> { PropertyDescriptorFactory.Create(EmitterType.GetProperty("Length"), new CategoryAttribute("Line Emitter"), new DisplayNameAttribute("Length"), new DescriptionAttribute("Gets or sets the length of the line.")), PropertyDescriptorFactory.Create(EmitterType.GetField("Rectilinear"), new CategoryAttribute("Line Emitter"), new DisplayNameAttribute("Rectilinear"), new DescriptionAttribute("If true, will emit particles perpendicular to the angle of the line.")), PropertyDescriptorFactory.Create(EmitterType.GetField("EmitBothWays"), new CategoryAttribute("Line Emitter"), new DisplayNameAttribute("EmitBothWays"), new DescriptionAttribute("If true, will emit particles both ways. Only work when Rectilinear is enabled.")), }; return(base.GetProperties().Concat(properties)); }