Conversions
Conversions to and from the Pixyz Engine SDK can be done through the use of Definitions, structural representations of entities.
This package contains a Conversions
class taking care of conversions of any Unity object or structure to its Pixyz equivalent through ToPixyz
and ToUnity
extension methods.
Materials
We recommend that you synchronize materials only if required. The reason is that you may lose information when converting material structures back and forth between Unity and Pixyz Engine.
This package can convert most of materials to the Pixyz framework (PBR structure). When converting back materials from Pixyz to Unity, materials are coming back as standard pipeline materials (e.g URP/Lit
or HDRP/Lit
).
The conversion comes with some limitations when not converting standard Lit materials:
- BiRP/URP: can only be generated in a deferred project.
- Space or time dependant procedural shaders will be "baked" in one arbitrary state.