Class TrianglePool | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class TrianglePool

    Inheritance
    System.Object
    TrianglePool
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.U2D.TriangleNet
    Syntax
    public class TrianglePool : ICollection<Triangle>, IEnumerable<Triangle>, IEnumerable

    Constructors

    TrianglePool()

    Declaration
    public TrianglePool()

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32
    Implements
    System.Collections.Generic.ICollection<T>.Count

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean
    Implements
    System.Collections.Generic.ICollection<T>.IsReadOnly

    Methods

    Add(Triangle)

    Declaration
    public void Add(Triangle item)
    Parameters
    Type Name Description
    Triangle item
    Implements
    System.Collections.Generic.ICollection<T>.Add(T)

    Clear()

    Declaration
    public void Clear()
    Implements
    System.Collections.Generic.ICollection<T>.Clear()

    Contains(Triangle)

    Declaration
    public bool Contains(Triangle item)
    Parameters
    Type Name Description
    Triangle item
    Returns
    Type Description
    System.Boolean
    Implements
    System.Collections.Generic.ICollection<T>.Contains(T)

    CopyTo(Triangle[], Int32)

    Declaration
    public void CopyTo(Triangle[] array, int index)
    Parameters
    Type Name Description
    Triangle[] array
    System.Int32 index
    Implements
    System.Collections.Generic.ICollection<T>.CopyTo(T[], System.Int32)

    Get()

    Gets a triangle from the pool.

    Declaration
    public Triangle Get()
    Returns
    Type Description
    Triangle

    GetEnumerator()

    Declaration
    public IEnumerator<Triangle> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<Triangle>
    Implements
    System.Collections.Generic.IEnumerable<T>.GetEnumerator()

    Release(Triangle)

    Declaration
    public void Release(Triangle triangle)
    Parameters
    Type Name Description
    Triangle triangle

    Remove(Triangle)

    Declaration
    public bool Remove(Triangle item)
    Parameters
    Type Name Description
    Triangle item
    Returns
    Type Description
    System.Boolean
    Implements
    System.Collections.Generic.ICollection<T>.Remove(T)

    Restart()

    Restart the triangle pool.

    Declaration
    public TrianglePool Restart()
    Returns
    Type Description
    TrianglePool

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator
    Implements
    System.Collections.IEnumerable.GetEnumerator()
    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