Skip to content
Roblox API Reference

MaterialVariant

Represent a variant of a Material.
Memory category
Instances
Own members
20
Inherited members
75
Subclasses
0
Siblings
608

Properties43

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byMaterialVariant20

Property categoryAppearance

  • MaterialVariant.AlphaMode: Enum.AlphaMode = Enum.AlphaMode.Opaque
    Determines how the alpha channel of the MaterialVariant.ColorMap is used.
    • Not browsable
    • Read capabilities: Material
  • MaterialVariant.BaseMaterial: Enum.Material = Enum.Material.Plastic
    Category Material this variant belongs to.
    • Write: Plugin security
    • Read capabilities: Material
  • MaterialVariant.ColorMap: string = ""
    Determines the color of the surface.
    • Plugin security
    • Read capabilities: Material
  • MaterialVariant.ColorMapContent: Content
    Determines the color of the surface. Only supports asset URIs as textures.
    • Plugin security
    • Read capabilities: Material
  • MaterialVariant.EmissiveMaskContent: Content
    Determines the emissivity across the surface.
    • Plugin security
    • Read capabilities: Material
  • MaterialVariant.EmissiveStrength: number = 1
    Determines the strength of emissive contribution.
    • Capabilities: Material
  • MaterialVariant.EmissiveTint: Color3 = Color3.new(1, 1, 1)
    Determines the tinting color for emissive contribution.
    • Capabilities: Material
  • MaterialVariant.MaterialPattern: Enum.MaterialPattern = Enum.MaterialPattern.Regular
    Determines texture tiling method.
    • Read capabilities: Material
  • MaterialVariant.MetalnessMap: string = ""
    Determines which parts of the surface are metal and are non-metal.
    • Plugin security
    • Read capabilities: Material
  • MaterialVariant.MetalnessMapContent: Content
    Determines which parts of the surface are metal and are non-metal. Only supports asset URIs as textures.
    • Plugin security
    • Read capabilities: Material
  • MaterialVariant.NormalMap: string = ""
    Modifies the lighting of the surface by adding bumps, dents, cracks, and curves without adding more polygons.
    • Plugin security
    • Read capabilities: Material
  • MaterialVariant.NormalMapContent: Content
    Modifies the lighting of the surface by adding bumps, dents, cracks, and curves without adding more polygons. Only supports asset URIs as textures.
    • Plugin security
    • Read capabilities: Material
  • MaterialVariant.RoughnessMap: string = ""
    Determines the apparent roughness across the surface.
    • Plugin security
    • Read capabilities: Material
  • MaterialVariant.RoughnessMapContent: Content
    Determines the apparent roughness across the surface. Only supports asset URIs as textures.
    • Plugin security
    • Read capabilities: Material
  • MaterialVariant.StudsPerTile: number = 10
    Determines the scale of textures.
    • Capabilities: Material

Property categoryInternal

  • MaterialVariant.AvgMetalness: number = 0
    • Hidden
    • Not replicated
    • Not scriptable
    • Read capabilities: Material
  • MaterialVariant.AvgRoughness: number = 127
    • Hidden
    • Not replicated
    • Not scriptable
    • Read capabilities: Material
  • MaterialVariant.TexturePack: string = ""
    • Hidden
    • Not scriptable
    • Read capabilities: Material
  • MaterialVariant.TexturePackContent: Content
    • Hidden
    • Not scriptable
    • Capabilities: Material

Property categoryMaterial

  • MaterialVariant.CustomPhysicalProperties: PhysicalProperties = default
    Determines the physical properties of parts whose material resolves to this variant.
    • Capabilities: Material

Methods42

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39

Events10

Inherited fromObject1
Inherited fromInstance9