14 public partial class LeapGraphic {
23 throw new Exception(
"Cannot get a custom channel by name if the graphic is not attached to a group.");
29 if (feature ==
null) {
33 if (feature.channelName == channelName) {
40 throw new Exception(
"No custom channel of the name " + channelName +
" could be found.");
44 if (featureDataObj ==
null) {
45 throw new Exception(
"The channel name " + channelName +
" did not match to a custom channel of type " + typeof(T).Name +
".");
48 return featureDataObj;
52 public abstract class CustomChannelDataBase : LeapFeatureData { }
64 if (!
value.Equals(_value)) {
bool isAttachedToGroup
Returns whether or not this graphic is attached to any group. Can still return false at runtime even ...
FeatureDataList _featureData
T GetCustomChannel< T >(string channelName)
Helper method to get a custom channel data object given the name of the feature it is attached to....