Basic functionality shared among Importers.
public static class ImporterBase
Methods
Declaration
public static bool ApproximatelyEqual(Matrix4x4 lhs, Matrix4x4 rhs)
Parameters
Type |
Name |
Description |
Matrix4x4 |
lhs |
|
Matrix4x4 |
rhs |
|
Returns
Declaration
public static T GetOrAddComponent<T>(GameObject go, bool insertFirst = false)
where T : Component
Parameters
Type |
Name |
Description |
GameObject |
go |
|
Boolean |
insertFirst |
|
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
Type |
Name |
Description |
Component |
comp |
|
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
Type |
Name |
Description |
Component |
comp |
|