Show / Hide Table of Contents

Class SpriteDataAccessExtensions

Inheritance
Object
SpriteDataAccessExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.U2D
Assembly: UnityEngine.dll
Syntax
public static class SpriteDataAccessExtensions

Methods

| Improve this Doc View Source

GetBindPoses(Sprite)

Declaration
public static NativeArray<Matrix4x4> GetBindPoses(this Sprite sprite)
Parameters
Type Name Description
Sprite sprite
Returns
Type Description
NativeArray<Matrix4x4>
| Improve this Doc View Source

GetBones(Sprite)

Declaration
public static SpriteBone[] GetBones(this Sprite sprite)
Parameters
Type Name Description
Sprite sprite
Returns
Type Description
SpriteBone[]
| Improve this Doc View Source

GetBoneWeights(Sprite)

Declaration
public static NativeArray<BoneWeight> GetBoneWeights(this Sprite sprite)
Parameters
Type Name Description
Sprite sprite
Returns
Type Description
NativeArray<BoneWeight>
| Improve this Doc View Source

GetIndices(Sprite)

Declaration
public static NativeArray<ushort> GetIndices(this Sprite sprite)
Parameters
Type Name Description
Sprite sprite
Returns
Type Description
NativeArray<UInt16>
| Improve this Doc View Source

GetVertexAttribute<T>(Sprite, VertexAttribute)

Declaration
public static NativeSlice<T> GetVertexAttribute<T>(this Sprite sprite, VertexAttribute channel)
    where T : struct
Parameters
Type Name Description
Sprite sprite
VertexAttribute channel
Returns
Type Description
NativeSlice<T>
Type Parameters
Name Description
T

GetVertexCount(Sprite)

Declaration
public static int GetVertexCount(this Sprite sprite)
Parameters
Type Name Description
Sprite sprite
Returns
Type Description
Int32

HasVertexAttribute(Sprite, VertexAttribute)

Declaration
public static bool HasVertexAttribute(this Sprite sprite, VertexAttribute channel)
Parameters
Type Name Description
Sprite sprite
VertexAttribute channel
Returns
Type Description
Boolean
| Improve this Doc View Source

SetBindPoses(Sprite, NativeArray<Matrix4x4>)

Declaration
public static void SetBindPoses(this Sprite sprite, NativeArray<Matrix4x4> src)
Parameters
Type Name Description
Sprite sprite
NativeArray<Matrix4x4> src
| Improve this Doc View Source

SetBones(Sprite, SpriteBone[])

Declaration
public static void SetBones(this Sprite sprite, SpriteBone[] src)
Parameters
Type Name Description
Sprite sprite
SpriteBone[] src
| Improve this Doc View Source

SetBoneWeights(Sprite, NativeArray<BoneWeight>)

Declaration
public static void SetBoneWeights(this Sprite sprite, NativeArray<BoneWeight> src)
Parameters
Type Name Description
Sprite sprite
NativeArray<BoneWeight> src
| Improve this Doc View Source

SetIndices(Sprite, NativeArray<UInt16>)

Declaration
public static void SetIndices(this Sprite sprite, NativeArray<ushort> src)
Parameters
Type Name Description
Sprite sprite
NativeArray<UInt16> src
| Improve this Doc View Source

SetVertexAttribute<T>(Sprite, VertexAttribute, NativeArray<T>)

Declaration
public static void SetVertexAttribute<T>(this Sprite sprite, VertexAttribute channel, NativeArray<T> src)
    where T : struct
Parameters
Type Name Description
Sprite sprite
VertexAttribute channel
NativeArray<T> src
Type Parameters
Name Description
T

SetVertexCount(Sprite, Int32)

Declaration
public static void SetVertexCount(this Sprite sprite, int count)
Parameters
Type Name Description
Sprite sprite
Int32 count
  • Improve this Doc
  • View Source
Back to top Generated by DocFX