You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
963 B

using System.Collections.Generic;
namespace UnityEditor.VFX
{
class VFXTopologyProvider : VariantProvider
{
public override IEnumerable<Variant> GetVariants()
{
yield return new Variant(
"Output Particle ShaderGraph Quad",
"Output",
typeof(VFXComposedParticleOutput),
new[] { new KeyValuePair<string, object>("m_Topology", new ParticleTopologyPlanarPrimitive()) });
yield return new Variant(
"Output Particle ShaderGraph Mesh",
"Output",
typeof(VFXComposedParticleOutput),
new[] { new KeyValuePair<string, object>("m_Topology", new ParticleTopologyMesh()) });
}
}
[VFXInfo(variantProvider = typeof(VFXTopologyProvider))]
sealed class VFXComposedParticleOutput : VFXAbstractComposedParticleOutput
{
VFXComposedParticleOutput() : base(false) { }
}
}