Class BakerExtensions
A collection of extension utility methods for the Baker<TAuthoring
Inherited Members
Namespace: Unity.NetCode .Hybrid
Assembly: Unity.NetCode.Authoring.Hybrid.dll
Syntax
public static class BakerExtensions
Methods
GetNetcodeTarget<T>(Baker<T>, bool)
The current conversion target to use for the baking.
Declaration
public static NetcodeConversionTarget GetNetcodeTarget<T>(this Baker<T> self, bool isPrefab) where T : Component
Parameters
Type | Name | Description |
---|---|---|
Baker<T> | self | an instance of the baker |
bool | isPrefab | state is we are converting a prefab or not |
Returns
Type | Description |
---|---|
Netcode |
Conversion target to use for the baking. |
Type Parameters
Name | Description |
---|---|
T | Baker type |
Remarks
In the editor, if a NetCodeConversionSettings is present in the build configuration used for conversion, the target specified by the build component is used.
Otherwise, the conversion target will be determined by the destination world for runtime conversion, and fallback to always be
Client