Instance Transform
Represents an instance’s position, rotation, and scale
Usage
Defining an Instance Transform
var localTransform = new FloraInstanceTransform(localPosition, localRotation, localScale);
FloraSystem.Instance.CreateInstance(prefab, this.transform, localTransform);Converting from a Unity Transform
var local = FloraInstanceTransform.FromUnityTransform(this.transform, Space.Self);
var world = FloraInstanceTransform.FromUnityTransform(this.transform, Space.World);Writing Instance Transforms
FloraSystem.Instance.UpdateInstanceWorldTransform(handle, transform);Transform Composition and Manipulation
Last updated