Class FusSceneConverter
Use ConvertFrom(FusFile, String) and ConvertTo(SceneContainer), to create new high/low level graph from a low/high level graph (made out of scene nodes and components) in order to have each visited element converted and/or split into its high/low level, render-ready/serialization-ready components.
Inheritance
Inherited Members
Namespace: Fusee.Engine.Core
Assembly: Fusee.Engine.Core.dll
Syntax
public static class FusSceneConverter
Methods
ConvertFrom(FusFile, String)
Traverses the given SceneContainer and creates new high level graph Fusee.Engine.Core.Scene by converting and/or splitting its components into the high level equivalents.
Declaration
public static SceneContainer ConvertFrom(FusFile fus, string id = null)
Parameters
Type | Name | Description |
---|---|---|
FusFile | fus | |
System.String | id |
Returns
Type | Description |
---|---|
SceneContainer |
ConvertFromAsync(FusFile, String)
Traverses the given SceneContainer and creates new high level graph Fusee.Engine.Core.Scene by converting and/or splitting its components into the high level equivalents in an async manner.
Declaration
public static async Task<SceneContainer> ConvertFromAsync(FusFile fus, string id = null)
Parameters
Type | Name | Description |
---|---|---|
FusFile | fus | The FusFile to convert. |
System.String | id | Path to this scene used as an addition for asset retriving inside the correct folder |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SceneContainer> |
ConvertTo(SceneContainer)
Traverses the given SceneContainer and creates new high low level graph FusFile by converting and/or splitting its components into the low level equivalents.
Declaration
public static FusFile ConvertTo(SceneContainer sc)
Parameters
Type | Name | Description |
---|---|---|
SceneContainer | sc | The Scene to convert. |
Returns
Type | Description |
---|---|
FusFile |