Show / Hide Table of Contents

Class TextureAtlas

Inheritance
Object
TextureAtlas
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: TreeEditor
Assembly: UnityEditor.dll
Syntax
public class TextureAtlas

Fields

| Improve this Doc View Source

atlasHeight

Declaration
public int atlasHeight
Field Value
Type Description
Int32
| Improve this Doc View Source

atlasPadding

Declaration
public int atlasPadding
Field Value
Type Description
Int32
| Improve this Doc View Source

atlasWidth

Declaration
public int atlasWidth
Field Value
Type Description
Int32
| Improve this Doc View Source

nodes

Declaration
public List<TextureAtlas.TextureNode> nodes
Field Value
Type Description
List<TextureAtlas.TextureNode>

Methods

| Improve this Doc View Source

AddTexture(String, Texture2D, Color, Texture2D, Texture2D, Texture2D, Texture2D, Single, Vector2, Boolean, Vector2)

Declaration
public void AddTexture(string name, Texture2D diffuse, Color diffuseColor, Texture2D normal, Texture2D gloss, Texture2D transtex, Texture2D shadowOffsetTex, float shininess, Vector2 scale, bool tileV, Vector2 uvTiling)
Parameters
Type Name Description
String name
Texture2D diffuse
Color diffuseColor
Texture2D normal
Texture2D gloss
Texture2D transtex
Texture2D shadowOffsetTex
Single shininess
Vector2 scale
Boolean tileV
Vector2 uvTiling
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()
| Improve this Doc View Source

GetTexTiling(String)

Declaration
public Vector2 GetTexTiling(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Vector2
| Improve this Doc View Source

GetUVRect(String)

Declaration
public Rect GetUVRect(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Rect
| Improve this Doc View Source

Pack(ref Int32, Int32, Int32, Boolean)

Declaration
public void Pack(ref int targetWidth, int targetHeight, int padding, bool correctPow2)
Parameters
Type Name Description
Int32 targetWidth
Int32 targetHeight
Int32 padding
Boolean correctPow2

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX