Skip to content

Commit 56c9195

Browse files
committed
#52: Automatically Enable KeypointLabeler Visualization
make keypointlabeler auto enabled in play mode
1 parent f1a81ef commit 56c9195

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

com.unity.perception/Runtime/GroundTruth/Labelers/KeypointLabeler.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ protected override void Setup()
132132
m_AnnotationDefinition = DatasetCapture.RegisterAnnotationDefinition("keypoints", new []{TemplateToJson(activeTemplate)},
133133
"pixel coordinates of keypoints in a model, along with skeletal connectivity data", id: new Guid(annotationId));
134134

135+
visualizationEnabled = supportsVisualization;
136+
135137
// Texture to use in case the template does not contain a texture for the joints or the skeletal connections
136138
m_MissingTexture = new Texture2D(1, 1);
137139

@@ -864,4 +866,4 @@ KeypointJson TemplateToJson(KeypointTemplate input)
864866
return json;
865867
}
866868
}
867-
}
869+
}

0 commit comments

Comments
 (0)