rojo/.cursor/rules/roblox/reference/engine/enums/TextureMode.yaml
2026-02-02 12:08:47 -06:00

51 lines
1.8 KiB
YAML

# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: TextureMode
type: enum
summary: |
Describes how the texture of a `Class.Trail` or `Class.Beam` behaves.
description: |
Describes how the texture of a `Class.Trail` or `Class.Beam` behaves.
code_samples: []
tags: []
deprecation_message: ''
items:
- name: Stretch
summary: |
For a `Class.Trail`, the texture will stretch out based on the lifetime of
the trail, and shrink inwards if the trail's attachments stop moving.
For a `Class.Beam`, the texture will repeat
`Class.Beam.TextureLength|TextureLength` times across the beam's overall
length. See [here](../../../effects/beams.md#texture-lengthmode) for
details.
value: 0
tags: []
deprecation_message: ''
- name: Wrap
summary: |
For a `Class.Trail`, the texture will be tiled as the length of the trail
changes, but the textures will remain stationary relative to their
attachments.
For a `Class.Beam`, the texture repetitions will equal the beam's overall
length (in studs) divided by its
`Class.Beam.TextureLength|TextureLength`. See
[here](../../../effects/beams.md#texture-lengthmode) for details.
value: 1
tags: []
deprecation_message: ''
- name: Static
summary: |
For a `Class.Trail`, the texture will be rolled out as the attachments
move, and they will remain in place until their lifetime is met. This
setting is ideal for trail textures that should appear "stamped" where
rendered, such as paw prints or tire tracks.
This value is not supported for `Class.Beam` and therefore behaves
identically to **Wrap**.
value: 2
tags: []
deprecation_message: ''