public static string ToString(ParticleSpace space) { switch (space) { case ParticleSpace.World: return("World"); case ParticleSpace.EmitterYpr: return("Emitter YPR"); case ParticleSpace.SameAsEmitter: return("Same as Emitter"); default: throw new ArgumentOutOfRangeException(nameof(space), space, null); } }
public static string ToString(ParticleSpace space) { switch (space) { case ParticleSpace.World: return "World"; case ParticleSpace.EmitterYpr: return "Emitter YPR"; case ParticleSpace.SameAsEmitter: return "Same as Emitter"; default: throw new ArgumentOutOfRangeException(nameof(space), space, null); } }