docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property LastDriver

    LastDriver

    The last driver id present in the store. Can be used to iterate over all registered drivers in a for loop.

    Declaration
    public int LastDriver { get; }
    Property Value
    Type Description
    int
    Examples
      for(int i= driverStore.FirstDriver; i < driverStore.LastDriver; ++i)
                 {
                      ref var instance = ref driverStore.GetDriverInstance(i).
                      ....
                 }
    
    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)