docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property sampleFrequency

    sampleFrequency

    The number of sample points Unity uses to approximate curved paths. Larger values produce a better quality approximate at the cost of reduced performance due to the number of ray casts.

    Declaration
    public int sampleFrequency { get; set; }
    Property Value
    Type Description
    int
    Remarks

    A value of n will result in n - 1 line segments for ray cast. This property is not used when using StraightLine since the value would always be 2.

    See Also
    ProjectileCurve
    BezierCurve
    In This Article
    Back to top
    Copyright © 2023 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)