docs.unity.cn
    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 : object, 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()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, October 28, 2021