Beispiel #1
0
        /// <summary>Initializes the struct with default values.</summary>
        public static ParticleConeShapeOptions Default()
        {
            ParticleConeShapeOptions value = new ParticleConeShapeOptions();

            value.type      = ParticleEmitterConeType.Base;
            value.radius    = 0f;
            value.angle     = new Degree();
            value.length    = 1f;
            value.thickness = 1f;
            value.arc       = new Degree();
            value.mode      = new ParticleEmissionMode();

            return(value);
        }
 private static extern void Internal_create(ParticleEmitterConeShape managedInstance, ref ParticleConeShapeOptions desc);
 private static extern void Internal_getOptions(IntPtr thisPtr, out ParticleConeShapeOptions __output);
 private static extern void Internal_setOptions(IntPtr thisPtr, ref ParticleConeShapeOptions options);
 /// <summary>Creates a new particle emitter cone shape.</summary>
 public ParticleEmitterConeShape(ParticleConeShapeOptions desc)
 {
     Internal_create(this, ref desc);
 }