Skip to content
This repository was archived by the owner on Nov 16, 2024. It is now read-only.
This repository was archived by the owner on Nov 16, 2024. It is now read-only.

[Space Pin] Dynamically Creating SpacePinOrientables via Editor Script is Hard  #47

@AMollis

Description

@AMollis

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions