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

23 lines
624 B
C#

3 years ago
using UnityEngine;
namespace UnityEditor.Polybrush
{
/// <summary>
/// Static helper methods for working with reflection. Mostly used for ProBuilder compatibility.
/// </summary>
static class ProBuilderInterface
{
/// <summary>
/// Tests if a GameObject is a ProBuilder mesh or not.
/// </summary>
/// <param name="gameObject"></param>
/// <returns></returns>
internal static bool IsProBuilderObject(GameObject gameObject)
{
if (ProBuilderBridge.ProBuilderExists())
return ProBuilderBridge.IsValidProBuilderMesh(gameObject);
return false;
}
}
}