Basic functionality shared among Importers.
public static class ImporterBase
Methods
Declaration
public static bool ApproximatelyEqual(Matrix4x4 lhs, Matrix4x4 rhs)
Parameters
Returns
Declaration
public static T GetOrAddComponent<T>(GameObject go, bool insertFirst = false)
where T : Component
Parameters
Returns
Type Parameters
Creates a relative path from one file or folder to another.
Declaration
public static string MakeRelativePath(string anchorPath, string pathToMakeRelative)
Parameters
Type |
Name |
Description |
String |
anchorPath |
|
String |
pathToMakeRelative |
|
Returns
Moves the given component to be first in the list on the GameObject.
If not in editor, this function is a no-op.
Declaration
public static void MoveComponentFirst(Component comp)
Parameters
Moves the given component to be last in the list on the GameObject.
If not in editor, this function is a no-op.
Declaration
public static void MoveComponentLast(Component comp)
Parameters