Class SerializationExtensions
Extension methods used for scene object serialization
Namespace: Unity.RuntimeSceneSerialization
Syntax
public static class SerializationExtensions
Methods
GetTransformAtPath(Transform, String)
Get the transform at the given path relative to this transform
Declaration
public static Transform GetTransformAtPath(this Transform root, string path)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | root | The transform to use as the root of the path |
| String | path | A path based on GameObject names to used find a transform relative to the root |
Returns
| Type | Description |
|---|---|
| Transform | The target transform, if it was found |
GetTransformPath(Transform, Transform)
Get the path of a given transform relative to this transform
Declaration
public static string GetTransformPath(this Transform root, Transform target)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | root | The transform to use as the root of the path |
| Transform | target | The transform whose path to get |
Returns
| Type | Description |
|---|---|
| String | A path based on GameObject names to used find a transform relative to the root |