startIndex
TypeScriptget startIndex(): numberSwift declarationvar startIndex: Int { get }The position of the first element in a nonempty collection. If the collection is empty, `startIndex` is equal to `endIndex`.
struct · iOS 18.0+ · SDK 27.1
struct MeshSkeletonCollectionAn object that holds a collection of skeletons used by a mesh resource.
get startIndex(): numberSwift declarationvar startIndex: Int { get }The position of the first element in a nonempty collection. If the collection is empty, `startIndex` is equal to `endIndex`.
makeIterator(): MeshSkeletonCollection_IteratorSwift declarationfunc makeIterator() -> MeshSkeletonCollection.IteratorReturns an iterator over the elements of this sequence.
get count(): numberSwift declarationvar count: Int { get }Number of skeletons.
index(i: number): numberSwift declarationfunc index(after i: Int) -> IntReturns the position immediately after the given index. The successor of an index must be well defined. For an index `i` into a collection `c`, calling `c.index(after: i)` returns the same index every time. - Parameter i: A valid index of the collection. `i` must be less than `endIndex`. - Returns: The index value immediately after `i`.
insert(instance: MeshResource_Skeleton): booleanSwift declaration@discardableResult mutating func insert(_ instance: MeshResource.Skeleton) -> BoolAdd a new skeleton to the container. Returns true if added. Returns false if it already exists.
remove(id: string): (MeshResource_Skeleton) | nullSwift declaration@discardableResult mutating func remove(id: String) -> MeshResource.Skeleton?Remove a skeleton by id.
update(instance: MeshResource_Skeleton): (MeshResource_Skeleton) | nullSwift declaration@discardableResult mutating func update(_ instance: MeshResource.Skeleton) -> MeshResource.Skeleton?Update an existing skeleton. The old instance is returned.
get isEmpty(): booleanSwift declarationvar isEmpty: Bool { get }True if there are no skeletons.
get endIndex(): numberSwift declarationvar endIndex: Int { get }The collection's "past the end" position---that is, the position one greater than the last valid subscript argument. When you need a range that includes the last element of a collection, use the half-open range operator (`..<`) with `endIndex`. The `..<` operator creates a range that doesn't include the upper bound, so it's always safe to use with `endIndex`. For example: let numbers = [10, 20, 30, 40, 50] if let index = numbers.firstIndex(of: 30) { print(numbers[index ..< numbers.endIndex]) } // Prints "[30, 40, 50]" If the collection is empty, `endIndex` is equal to `startIndex`.
formIndex(i: number): { $ret: null; $out: { "i": number } }Swift declarationfunc formIndex(after i: inout Int)Replaces the given index with its successor. - Parameter i: A valid index of the collection. `i` must be less than `endIndex`.
Omit the output parameters from the call. The result contains $ret and $out, with i inside $out.
removeAll(): voidSwift declarationmutating func removeAll()Remove all the skeletons.
static init(): MeshSkeletonCollectionSwift declarationinit()subscript(id: string): (MeshResource_Skeleton) | nullSwift declarationsubscript(id: String) -> MeshResource.Skeleton? { get }Read a skeleton given its id.
subscript52910(position: number): MeshResource_SkeletonSwift declarationsubscript(position: Int) -> MeshResource.Skeleton { get }Accesses the element at the specified position. The following example accesses an element of an array through its subscript to print its value: var streets = ["Adams", "Bryant", "Channing", "Douglas", "Evarts"] print(streets[1]) // Prints "Bryant" You can subscript a collection with any valid index other than the collection's end index. The end index refers to the position one past the last element of a collection, so it doesn't correspond with an element. - Parameter position: The position of the element to access. `position` must be a valid index of the collection that is not equal to the `endIndex` property. - Complexity: O(1)
static init44980(skeletons: Array<MeshResource_Skeleton>): MeshSkeletonCollectionSwift declarationinit(_ skeletons: [MeshResource.Skeleton])1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MeshSkeletonCollection.init(arrayLiteral:)
A variable number of Swift arguments is not supported.