// 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); }
// PRAGMA MARK - Public Interface static WhitelistedMeshFilter() { ValidatorUnityWhitelist.RegisterWhitelistedTypeMember(typeof(UnityEngine.MeshFilter), kMeshFilterSharedMesh); ValidatorPredicates.RegisterPredicateFor(kMeshFilterSharedMesh, DontValidateIfTextMeshPro); }
public static void Setup() { ValidatorPredicates.RegisterPredicateFor(kMeshFilterSharedMesh, DontValidateIfMeshRenderer); ValidatorPredicates.RegisterPredicateFor(kOutletComponentOutlet, DontValidateIfMeshRenderer); }