docs.unity3d.com
    Show / Hide Table of Contents

    Class SequentialIDGenerator

    Simple Key generator that increments the next key by 1 each time.

    Inheritance
    Object
    SequentialIDGenerator
    Namespace: UnityEngine.Localization.Tables
    Syntax
    public class SequentialIDGenerator : IKeyGenerator

    Constructors

    SequentialIDGenerator()

    Create a new instance that starts at 1.

    Declaration
    public SequentialIDGenerator()

    SequentialIDGenerator(Int64)

    Creates a new instance starting from startingId.

    Declaration
    public SequentialIDGenerator(long startingId)
    Parameters
    Type Name Description
    Int64 startingId

    Properties

    NextAvailableId

    The next id value that will be provided by GetNextKey()

    Declaration
    public long NextAvailableId { get; }
    Property Value
    Type Description
    Int64

    Methods

    GetNextKey()

    Returns NextAvailableId and increments it by 1.

    Declaration
    public long GetNextKey()
    Returns
    Type Description
    Int64
    Implements
    IKeyGenerator.GetNextKey()
    In This Article
    • Constructors
      • SequentialIDGenerator()
      • SequentialIDGenerator(Int64)
    • Properties
      • NextAvailableId
    • Methods
      • GetNextKey()
    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