10using System.Collections;
11using System.Collections.Generic;
22 [Tooltip(
"The anchors that are within this AnchorGroup. Anchorable objects associated "
23 +
"this AnchorGroup can only be placed in anchors within this group.")]
27 private HashSet<AnchorableBehaviour> _anchorableObjects =
new HashSet<AnchorableBehaviour>();
31 public HashSet<AnchorableBehaviour>
anchorableObjects {
get {
return _anchorableObjects; } }
34 foreach (var anchor
in anchors) {
40 foreach (var anchor
in anchors) {
41 anchor.groups.Remove(
this);
50 if (_anchors.
Add(anchor)) {
60 if (_anchors.
Remove(anchor)) {
61 anchor.
groups.Remove(
this);
void NotifyAnchorableObjectAdded(AnchorableBehaviour anchObj)
void NotifyAnchorableObjectRemoved(AnchorableBehaviour anchObj)
bool Contains(Anchor anchor)
HashSet< AnchorableBehaviour > anchorableObjects
Gets the AnchorableBehaviours that are set to this AnchorGroup.
bool Remove(Anchor anchor)
HashSet< AnchorGroup > groups
AnchorableBehaviours mix well with InteractionBehaviours you'd like to be able to pick up and place i...