getGeometryInstanceAttributes
Returns the modifiable per-instance attributes for a GeometryInstance.
const attributes = primitive.getGeometryInstanceAttributes('an id');
attributes.color = ColorGeometryInstanceAttribute.toValue(Color.AQUA);
attributes.show = ShowGeometryInstanceAttribute.toValue(true);
attributes.distanceDisplayCondition = DistanceDisplayConditionGeometryInstanceAttribute.toValue(100.0, 10000.0);
attributes.offset = OffsetGeometryInstanceAttribute.toValue(Cartesian3.IDENTITY);
Content copied to clipboard
Return
The typed array in the attribute's format or undefined if the is no instance with id.
Parameters
id
The id of the GeometryInstance.