private void SetMainMarkerProperties(LabeledLine marker, float?measurement) { marker.transform.rotation = transform.parent.transform.rotation; marker.Enabled = measurement != null && Enabled && measurement > 0; marker.LabelEnabled = LabelsEnabled; marker.Thickness = LineThickness * 0.001f; marker.Color = LineColor; }
public void Awake() { _markerHead = CreateLineMarker("Head", LineColor); _markerChin = CreateLineMarker("Chin", LineColor); _markerShoulder = CreateLineMarker("Shoulder", LineColor); _markerNipple = CreateLineMarker("Nipple", LineColor); _markerUnderbust = CreateLineMarker("Underbust", LineColor); _markerNavel = CreateLineMarker("Navel", LineColor); _markerGroin = CreateLineMarker("Crotch", LineColor); _markerKnee = CreateLineMarker("Knee", LineColor); _markerHeel = CreateLineMarker("Heel", LineColor); }
public void Awake() { LineColor = Color.blue; _markerEyeMidHeight = CreateLineMarker("Eye Height", LineColor, Vector3.left); _markerEyeRightOuter = CreateLineMarker("Eye Right Outer", LineColor, Vector3.up); _markerEyeLeftOuter = CreateLineMarker("Eye Left Outer", LineColor, Vector3.up); _markerNoseBottomHeight = CreateLineMarker("Nose Bottom Height", LineColor, Vector3.left); _markerMouthMidHeight = CreateLineMarker("Mouth Height", LineColor, Vector3.left); _markerMouthLeft = CreateLineMarker("Mouth Left", LineColor, Vector3.up); _markerMouthRight = CreateLineMarker("Mouth Right", LineColor, Vector3.up); _markerChinSmall = CreateLineMarker("Chin Small", LineColor, Vector3.left); _markerHeadSmall = CreateLineMarker("Head Small", LineColor, Vector3.left); _markerHeadRight = CreateLineMarker("Head Right", LineColor, Vector3.up); _markerHeadLeft = CreateLineMarker("Head Left", LineColor, Vector3.up); _markerFaceCenter = CreateLineMarker("Face Center", LineColor, Vector3.up); }