Renamed PostProcessGeometry to PostProcessComponents. Added doctags and tooltips for ImportProcessors
MODIFY
package/com.unity.formats.usd/Runtime/Scripts/IO/ImportProcessor/RegexImportProcessor.cs
package/com.unity.formats.usd/Runtime/Scripts/IO/ImportProcessor/RegexImportProcessor.cs
+// Copyright 2018 Pixar Animation Studios
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Text.RegularExpressions;
using pxr;
-//possibly move this to Examples
-namespace Unity.Formats.USD
+namespace Unity.Formats.USD.Examples
{
+ /// <summary>
+ /// Abstract class meant as base class for certain IImportPostProcessHierarchy
+ /// implmentations. Has methods for filtering Usd Paths based on glob-style wildcards or regex.
+ /// </summary>
public abstract class RegexImportProcessor : MonoBehaviour
{
public enum ECompareAgainst { UsdName, UsdPath }
+ [Tooltip("UsdName matches only the name of the GameObject/UsdPrim, while UsdPath matches against the entire path of the object starting at /")]
public ECompareAgainst compareAgainst;
public enum EMatchType { Wildcard, Regex }
+ [Tooltip("Wildcard matches using simple filesystem-style globbing, Regex uses strict regular expression")]
public EMatchType matchType;
+ [Tooltip("If true, matches are ignored, failed matches are proccessed.")]
public bool isNot = false;
+ [Tooltip("The wildcard or regex expression to test against")]
public string matchExpression = "*";
private Regex m_regex;

MODIFY
package/com.unity.formats.usd/Runtime/Scripts/IO/Scene/SceneImporter.cs
package/com.unity.formats.usd/Runtime/Scripts/IO/Scene/SceneImporter.cs
@@ -913,10 +913,10 @@ namespace Unity.Formats.USD {
}
Profiler.EndSample();
- Profiler.BeginSample("USD: PostProcessGeometry");
- foreach( var processor in root.GetComponents<IImportPostProcessGeometry>())
+ Profiler.BeginSample("USD: Post Process Components");
+ foreach( var processor in root.GetComponents<IImportPostProcessComponents>())
{
- processor.PostProcessGeometry(primMap, importOptions);
+ processor.PostProcessComponents(primMap, importOptions);
}
Profiler.EndSample();
}

Renamed PostProcessGeometry to PostProcessComponents. Added doctags and tooltips for ImportProcessors