Abstract class meant as base class for certain IImportPostProcessHierarchy
implmentations. Has methods for filtering Usd Paths based on glob-style wildcards or regex.
Inheritance
RegexImportProcessor
public abstract class RegexImportProcessor : MonoBehaviour
Fields
Declaration
[Tooltip("UsdName matches only the name of the GameObject/UsdPrim, while UsdPath matches against the entire path of the object starting at /")]
public RegexImportProcessor.ECompareAgainst compareAgainst
Field Value
Declaration
[Tooltip("If true, matches are ignored, failed matches are proccessed.")]
public bool isNot
Field Value
Declaration
[Tooltip("The wildcard or regex expression to test against")]
public string matchExpression
Field Value
Declaration
[Tooltip("Wildcard matches using simple filesystem-style globbing, Regex uses strict regular expression")]
public RegexImportProcessor.EMatchType matchType
Field Value
Methods
Declaration
protected void InitRegex()
Declaration
protected bool IsMatch(SdfPath sdfPath)
Parameters
Type |
Name |
Description |
SdfPath |
sdfPath |
|
Returns
Declaration
public static string WildcardToRegex(string pattern)
Parameters
Type |
Name |
Description |
String |
pattern |
|
Returns