Skip to main content

Point To Point Dimension

NameTypeDescription
valuesReferenceEzDimStarterGlobal parameters reference
isIndividualboolAllow dimension to have local attributes
isDynamicboolMake dimension dynamic
lineThicknessfloatThickness of the line
arrowHeightfloatArrow prefab's scale
textSizefloatTextMesh font size
NormalOffsetfloatOffset dimension along normal of first hitPoint
textTowardsCameraOffsetfloatOffset dimension towards camera to avoid masking or intersection with other objects in the scene
textOffsetfloatOffset number's textMesh to its local Y axis
numberColorColorColor of number's textMesh
mainColorColorColor of line material
arrowColorColorColor of arrow material
hoveredTintColorColor of hovered dimensions
selectedTintColorColor of selected dimensions
hoveredOnSelectedTintColorColor of selected dimension when hovered
mainLineMatMaterialMaterial of line
arrowMatMaterialMaterial of arrows
arrowPrefabGameObjectPrefab containing the arrow object
cameraTransformTransformTransform of camera
rendererCameraCameraCamera component of our renderer camera
mainParentGameObjectDimension main parent
pointAVector3Initial position of the first hitPoint
pointBVector3Initial position of the second hitPoint
secondDrawStepboolThis bool turns true after first click
isDoneboolThis bool turns true at the end of creation process
firstPointHitNormalVector3Normal of first hitPoint
objectATransformGOGameObjectGameObject at the Position of first hitObject's center
objectBTransformGOGameObjectGameObject at the Position of second hitObject's center
pointATransformGOGameObjectGameObject at the position of first hitPoint
pointBTransformGOGameObjectGameObject at the position of second hitPoint
objectAGameObjectFirst hitObject
objectBGameObjectSecond hitObject
CreateDimension()MethodThis void creates the dimension's parts
UpdateDimension()MethodThis void updates the dimension's main features
UpdateTextTransform()MethodThis void updates the dimension's text transform