Mesh¶
Represents a part that can have custom mesh applied to it, the mesh may be from the Polytoria Store (Hats, Tools and Heads) or user-uploaded meshes.
Inherits: Entity
Properties¶
- Asset:
MeshAsset - IncludeOffset:
boolean - CollisionType:
CollisionTypeEnum - PlayAnimationOnStart:
boolean - UsePartColor:
boolean - Color:
Color - CastShadows:
boolean - CurrentAnimation:
string - IsAnimationPlaying:
boolean - Loading:
boolean
Methods¶
PlayAnimation(animationName: string, speed: number, loop: boolean) → nil¶
Plays the specified animation on the mesh.
StopAnimation(animationName: string) → nil¶
Stops the specified animation on the mesh.
GetAnimations() → { string }¶
Gets a list of all animations available on the mesh.
GetAnimationInfo() → { MeshAnimationInfo }¶
Get the animation info
Events¶
- Loaded: Fires when this mesh has been loaded.