Graphics

The graphics component is a core component that provides the attached entity with a 3D graphics representation. For further details on all properties associated with this component and how to use this component with scripting, please see the API documentation.

Graphics Component

Properties

The graphics component properties that are accessible through the inspector.

Geometry

The geometry type is the type of 3D geometry that is used to represent the graphics of the attached entity. It is one of the following:

  • Quad
  • Sphere
  • Box
  • Cylinder
  • Cone
  • Mesh

When importing 3D assets and CAD files into ProtoTwin, the default geometry type used is Mesh. It represents any arbitrary triangle mesh.

Material

The material applied to the geometry. You can click the add button to create a new material or the edit button to edit an existing material. Doing this replaces the inspector with a new pane, allowing you to customize the graphics properties and import textures. You can customize the base color, opacity, normal, roughness, metallicness, occlusion, displacement values and maps, UV coordinates, and the shader. You may also select a material to use from the built-in standard library.

Material Editor

Scale

The local-scale applied to the geometry. This property allows the graphical mesh to be non-uniformly scaled. This works with all possible geometry types. Note that unlike the transform scale, this property does not affect any descendants of the entity.

Advanced

In the advanced properties, you can toggle the visibility of the graphical mesh and whether or not the geometry should cast shadows.