all-iver / shapes2d

Shapes2D for Unity3D - Make simple art assets quickly in Unity
http://sub-c.org/Shapes2D/documentation/
MIT License
157 stars 28 forks source link

SetPathWorldSegments() doesn't work properly after Instantiate() and before Start() #18

Open all-iver opened 3 years ago

all-iver commented 3 years ago

This is because Configure() gets called in Start(), so that won't have run yet and the rectTransform var won't be set up. A workaround should be to call Configure() manually after instantiating a UI object. This could conceivably affect other UI functions too if they rely on rectTransform.