docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    VFX type reference

    This page references all the types the Visual Effect Graph uses. Some of these are standard C# and Unity types whereas others are unique to the Visual Effect Graph.

    Base types

    Base types refer to standard C# and Unity types that you can use to store basic data.

    Attribute-base types

    Attribute-base Types are types that you can use for new attribute storage in Blackboard's corresponding tab section.

    Type Color Description
    float
    A 32-bit floating-point value.
    int
    A 32-bit signed integer value.
    uint
    A 32-bit unsigned integer value.
    bool
    A 1-bit boolean value.
    Vector2
    A two-dimensional 32-bit floating-point vector.
    Vector3
    A three-dimensional 32-bit floating-point vector.
    Vector4
    A four-dimensional 32-bit floating-point vector.
    Color
    A four-component (Red, Green, Blue, Alpha) 32-bit floating-point linear Color.

    Other base types

    The following base types are compatible with properties, but not with attributes.

    Type Color Description
    AnimationCurve
    Unity's AnimationCurve type.
    Gradient
    Unity's Gradient type.
    Texture2D
    Unity's Texture2D type.
    Texture3D
    Unity's Texture3D type.
    TextureCube
    Unity's CubeMap type.
    Texture2DArray
    Unity's Texture2DArray type.
    TextureCubeArray
    Unity's CubeMapArray type.
    Mesh
    Unity's Mesh type.

    Advanced types

    This section describes the advanced types that the Visual Effect Graph includes. These are either advanced versions of the base types or composite types (made up of multiple properties).

    Spaceable base types

    Spaceable base types are Vector types that embed a space alongside their value. They also use a vector semantic when performing space transformations.

    Type Color Description
    Position
    A world-space or local-space three-component position vector. For more information on this type and its properties, see Position.
    Vector
    A world-space or local-space three-component vector. For more information on this type and its properties, see Vector.
    Direction
    A world-space or local-space three-component normalized direction. Values of this type are always normalized when you retrieve them. For more information on this type and its properties, see Direction.

    Shape types

    Shape Types are Advanced types that define a shape based on a composition on base types.

    Type Color Description
    Sphere
    A sphere defined by a center position and a radius. For more information on this type and its properties, see Sphere.
    ArcSphere
    An oriented box defined by a position, a Euler angle (in degrees), and a scale. For more information on this type and its properties, see OrientedBox.
    Circle
    A 3D circle oriented on the XY plane, defined by a position and a radius. For more information on this type and its properties, see Circle.
    ArcCircle
    A solid-arc of a circle, defined by an angle and a Circle. For more information on this type and its properties, see ArcCircle.
    Torus
    A 3D torus oriented on the XY plane, defined by a position, a major radius (torus radius), and a minor radius (torus thickness). For more information on this type and its properties, see Torus.
    ArcTorus
    A solid-arc of a torus defined by an angle and a 3D Torus. For more information on this type and its properties, see ArcTorus.
    Cone
    A 3D cone defined by a height, an upper radius, and a lower radius. For more information on this type and its properties, see Cone.
    ArcCone
    A solid-arc of 3D Cone defined by an angle and a Cone. For more information on this type and its properties, see ArcCone.
    Line
    A line defined by two positions. For more information on this type and its properties, see Line.
    Transform
    A translation, rotation, and scaling component defined by a position, a Euler angle (expressed in degrees), and a scale. For more information on this type and its properties, see Transform.

    Other types

    Type Color Description
    TerrainType
    A Unity Terrain defined by a set of bounds, a heightmap, and a height. For more information on this type and its properties, see TerrainType.
    Camera
    A Unity Camera defined by a Transform, field of view, near-plane, far-plane, aspect ratio, resolution. You can also access the color and depth buffer. For more information on this type and its properties, see Camera.
    Flipbook
    A type that returns horizontal and vertical (signed integers) sizes of a flipbook.
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)