Scripting API | Package Manager UI website
docs.unity3d.com
  • Scripting API
    Show / Hide Table of Contents
    • Getting Started
      • Shader Graph
      • Shader Graph Window
      • Blackboard
      • Master Preview
      • Create Node Menu
      • Shader Graph Asset
      • Custom Nodes with Code​Function​Node
    • Sub-graph
      • Sub-graph Asset
    • Node
      • Port
      • Edge
      • Master Node
    • Data
      • Property Types
      • Data Types
      • Port Bindings
    • Node Library
      • Artistic
        • Channel Mixer
        • Contrast
        • Hue
        • Invert Colors
        • Replace Color
        • Saturation
        • White Balance
        • Blend
        • Dither
        • Channel Mask
        • Color Mask
        • Normal Blend
        • Normal From Height
        • Normal From Texture
        • Normal Reconstruct Z
        • Normal Strength
        • Normal Unpack
        • Colorspace Conversion
      • Channel
        • Combine
        • Flip
        • Split
        • Swizzle
      • Input
        • Boolean
        • Color
        • Constant
        • Integer
        • Slider
        • Time
        • Vector 1
        • Vector 2
        • Vector 3
        • Vector 4
        • Bitangent Vector
        • Normal Vector
        • Position
        • Screen Position
        • Tangent Vector
        • UV
        • Vertex Color
        • View Direction
        • Gradient
        • Sample Gradient
        • Matrix 2x2
        • Matrix 3x3
        • Matrix 4x4
        • Transformation Matrix
        • Dielectric Specular
        • Metal Reflectance
        • Ambient
        • Camera
        • Fog
        • Light Probe
        • Object
        • Reflection Probe
        • Scene Color
        • Scene Depth
        • Screen
        • Cubemap Asset
        • Sample Cubemap
        • Sample Texture 2D
        • Sample Texture 2D Array
        • Sample Texture 2D LOD
        • Sample Texture 3D
        • Sampler State
        • Texel Size
        • Texture 2D Array Asset
        • Texture 2D Asset
        • Texture 3D Asset
      • Master
        • PBR
        • Unlit
      • Math
        • Add
        • Divide
        • Multiply
        • Power
        • Square Root
        • Subtract
        • Absolute
        • Exponential
        • Length
        • Log
        • Modulo
        • Negate
        • Normalize
        • Posterize
        • Reciprocal
        • Reciprocal Square Root
        • DDX
        • DDXY
        • DDY
        • Inverse Lerp
        • Lerp
        • Smoothstep
        • Matrix Construction
        • Matrix Determinant
        • Matrix Split
        • Matrix Transpose
        • Clamp
        • Fraction
        • Maximum
        • Minimum
        • One Minus
        • Random Range
        • Remap
        • Saturate
        • Ceiling
        • Floor
        • Round
        • Sign
        • Step
        • Truncate
        • Arccosine
        • Arcsine
        • Arctangent
        • Arctangent2
        • Cosine
        • Degrees To Radians
        • Hyperbolic Cosine
        • Hyperbolic Sine
        • Hyperbolic Tangent
        • Radians To Degrees
        • Sine
        • Tangent
        • Cross Product
        • Distance
        • Dot Product
        • Fresnel Effect
        • Projection
        • Reflection
        • Rejection
        • Rotate About Axis
        • Sphere Mask
        • Transform
        • Noise Sine Wave
        • Sawtooth Wave
        • Square Wave
        • Triangle Wave
      • Procedural
        • Checkerboard
        • Gradient Noise
        • Simple Noise
        • Voronoi
        • Ellipse
        • Polygon
        • Rectangle
        • Rounded Rectangle
      • Utility
        • Preview
        • Sub-graph
        • All
        • And
        • Any
        • Branch
        • Comparison
        • Is Front Face
        • Is Infinite
        • Is Na​N
        • Nand
        • Not
        • Or
      • UV
        • Flipbook
        • Polar Coordinates
        • Radial Shear
        • Rotate
        • Spherize
        • Tiling And Offset
        • Triplanar
        • Twirl
    • Scripting API
      • Code​Function​Node
      • Port Types
      • Slot​Attribute
      • Binding
      • Get​Function​To​Convert

    Scripting API

    Description

    This section of the documentation contains details of the scripting API that Shader Graph provides. To use this information, you should be familiar with the basic theory and practice of scripting in Unity which is explained in the Scripting section of our manual.

    The scripting reference is organised according to the classes available to scripts which are described along with their methods, properties and any other information relevant to their use.

    Contents

    • CodeFunctionNode
      • Port Types
      • SlotAttribute
      • Binding
      • GetFunctionToConvert
    In This Article
    • Description
    • Contents
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023