You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2024. It is now read-only.
Overview
An Unity Project can't easily create SpacePinOrientable dynamically via Editor Script, because there is no way to easily set the serialized orienter field. There's a way to set the private iorienter, but this doesn't get serialized.
Description
I'm attempting to create an Editor Script that dynamically creates a tape measure in my scene. This utility script places a SpacePinOrientables every meter. I'd like to set the orienter field via the Editor script, dynamically, so I don't have to do this at runtime. But there is no way to do this today. There's the SetOrienter() method, but this only sets the private iorienter field, and this doesn't get serialized field. Since it's not serialized, the value is lost when app is played.
Suggest Fix
Update SetOrienter() to set both the iorienter and orienter fields.