Zinnia.Unity
Zinnia.Unity copied to clipboard
Make all sub classes that are used by fields extend MonoBehaviour so they can be used as property components within the inspector
For use with #210
Candidates
-
ObjectPointer.Element -
TransformData
Event Data
(should this be a monobehaviour? I don't think you should be able to configure event data via a component imho)
-
PointsCast.EventData -
ActionCollisionContainer.EventData -
ActionCollisionConsumer.EventData -
ActionCollisionPublisher.Payload(this is the data for the event, probably should be renamed too to EventData?) -
CollisionNotifier.EventData -
ObjectDistanceComparator.EventData -
ObjectFollower.EventData -
TransformPropertyApplier.EventData -
CameraColorOverlay.EventData -
PointsRenderer.EventData
Ignore?
Probably just leaves these as they are
-
ActionRegistrar.ActionSource(this is a struct because we need the serialization) -
GameObjectEventStack.EventElements(this is just a collection of events so can be ignored) -
GameObjectRelation.Relation(unsure why this is a class, maybe should be a struct?) -
RulesMatcher.Element(dubious whether this should be MonoBehaviour)
ObjectPointer.Element is now it's own PointerElement class anyway.