// PRAGMA MARK - Public Interface static ValidateParticleSystemRendererMesh() { Type particleSystemRendererType = typeof(UnityEngine.ParticleSystemRenderer); MemberInfo meshMember = ValidatorUnityWhitelist.GetPropertyFrom(particleSystemRendererType, "mesh"); ValidatorUnityWhitelist.RegisterWhitelistedTypeMember(particleSystemRendererType, meshMember); ValidatorPredicates.RegisterPredicateFor(meshMember, OnlyValidateIfRenderModeMesh); }
// PRAGMA MARK - Public Interface static ValidateParticleSystemRendererMaterial() { Type particleSystemRendererType = typeof(UnityEngine.ParticleSystemRenderer); MemberInfo sharedMaterialMember = ValidatorUnityWhitelist.GetPropertyFrom(particleSystemRendererType, "sharedMaterial"); ValidatorUnityWhitelist.RegisterWhitelistedTypeMember(particleSystemRendererType, sharedMaterialMember); ValidatorPredicates.RegisterPredicateFor(sharedMaterialMember, DontValidateIfRenderModeNone); }