Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Swizzle(CellSwizzle, Vector3)

Swizzles the given position with the given swizzle order.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.GridModule
public static Vector3 Swizzle(GridLayout.CellSwizzle swizzle, Vector3 position)

Parameters

Determines the rearrangement order for the swizzle.

position

Position to swizzle.

Returns

Type

Description

Vector3The swizzled position.

Remarks

Additional Resources: GridLayout.CellSwizzle