18 [DisallowMultipleComponent]
19 public abstract partial class LeapMeshGraphicBase : LeapGraphic {
21 [Tooltip(
"The tint to apply to the vertex colors of this mesh. This value cannot be changed " +
22 "at edit time. You can use a RuntimeTintFeature if you want to change the color of " +
23 "an object at runtime.")]
32 public Mesh
mesh {
get;
protected set; }
54 editor =
new MeshEditorApi(
this);
66 [Tooltip(
"The mesh that will represent this graphic")]
71 [Tooltip(
"All channels that are allowed to be remapped into atlas coordinates.")]
75 private UVChannelFlags _remappableChannels = UVChannelFlags.UV0 |
87 Debug.LogWarning(
"Changing the representation of the graphic is not supported by this rendering type");
bool addRemoveSupported
Returns whether or not add/remove operations are supported at runtime by this group....
bool isAttachedToGroup
Returns whether or not this graphic is attached to any group. Can still return false at runtime even ...
bool isRepresentationDirty
An internal flag that returns true if the visual representation of this graphic needs to be updated....
LeapGraphicGroup attachedGroup
Returns the group this graphic is attached to.
This class is a base class for all graphics that can be represented by a mesh object.
abstract void RefreshMeshData()
When this method is called, the mesh property and the remappableChannels property must be assigned to...
Mesh mesh
Returns the mesh that represents this graphic. It can have any topology, any number of uv channels,...
UVChannelFlags remappableChannels
Returns an enum mask that represents the union of all channels that are allowed to be remapped for th...
This class is the trivial implementation of LeapMeshGraphicBase. It references a mesh asset directly ...
override void RefreshMeshData()
When this method is called, the mesh property and the remappableChannels property must be assigned to...
void SetMesh(Mesh mesh)
Call this method at edit time or at runtime to set the specific mesh to be used to represent this gra...