Show / Hide Table of Contents

Class TreeData

Inheritance
Object
Object
ScriptableObject
TreeData
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance(String)
ScriptableObject.CreateInstance(Type)
ScriptableObject.CreateInstance<T>()
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: TreeEditor
Assembly: UnityEditor.dll
Syntax
public class TreeData : ScriptableObject

Fields

| Improve this Doc View Source

branchGroups

Declaration
public TreeGroupBranch[] branchGroups
Field Value
Type Description
TreeGroupBranch[]
| Improve this Doc View Source

isInPreviewMode

Declaration
public bool isInPreviewMode
Field Value
Type Description
Boolean
| Improve this Doc View Source

leafGroups

Declaration
public TreeGroupLeaf[] leafGroups
Field Value
Type Description
TreeGroupLeaf[]
| Improve this Doc View Source

materialHash

Declaration
public string materialHash
Field Value
Type Description
String
| Improve this Doc View Source

mesh

Declaration
public Mesh mesh
Field Value
Type Description
Mesh
| Improve this Doc View Source

nodes

Declaration
public TreeNode[] nodes
Field Value
Type Description
TreeNode[]
| Improve this Doc View Source

optimizedCutoutMaterial

Declaration
public Material optimizedCutoutMaterial
Field Value
Type Description
Material
| Improve this Doc View Source

optimizedSolidMaterial

Declaration
public Material optimizedSolidMaterial
Field Value
Type Description
Material
| Improve this Doc View Source

root

Declaration
public TreeGroupRoot root
Field Value
Type Description
TreeGroupRoot

Methods

| Improve this Doc View Source

AddGroup(TreeGroup, Type)

Declaration
public TreeGroup AddGroup(TreeGroup parent, Type type)
Parameters
Type Name Description
TreeGroup parent
Type type
Returns
Type Description
TreeGroup
| Improve this Doc View Source

AddNode(TreeGroup, TreeNode)

Declaration
public TreeNode AddNode(TreeGroup g, TreeNode parent)
Parameters
Type Name Description
TreeGroup g
TreeNode parent
Returns
Type Description
TreeNode
| Improve this Doc View Source

AddNode(TreeGroup, TreeNode, Boolean)

Declaration
public TreeNode AddNode(TreeGroup g, TreeNode parent, bool validate)
Parameters
Type Name Description
TreeGroup g
TreeNode parent
Boolean validate
Returns
Type Description
TreeNode
| Improve this Doc View Source

CheckExternalChanges()

Declaration
public bool CheckExternalChanges()
Returns
Type Description
Boolean
| Improve this Doc View Source

ClearReferences()

Declaration
public void ClearReferences()
| Improve this Doc View Source

DeleteGroup(TreeGroup)

Declaration
public void DeleteGroup(TreeGroup g)
Parameters
Type Name Description
TreeGroup g
| Improve this Doc View Source

DeleteNode(TreeNode)

Declaration
public void DeleteNode(TreeNode n)
Parameters
Type Name Description
TreeNode n
| Improve this Doc View Source

DeleteNode(TreeNode, Boolean)

Declaration
public void DeleteNode(TreeNode n, bool validate)
Parameters
Type Name Description
TreeNode n
Boolean validate
| Improve this Doc View Source

DuplicateGroup(TreeGroup)

Declaration
public TreeGroup DuplicateGroup(TreeGroup g)
Parameters
Type Name Description
TreeGroup g
Returns
Type Description
TreeGroup
| Improve this Doc View Source

DuplicateNode(TreeNode)

Declaration
public TreeNode DuplicateNode(TreeNode n)
Parameters
Type Name Description
TreeNode n
Returns
Type Description
TreeNode
| Improve this Doc View Source

GetAdaptiveHeightSegments(Single, Single)

Declaration
public static int GetAdaptiveHeightSegments(float h, float adaptiveQuality)
Parameters
Type Name Description
Single h
Single adaptiveQuality
Returns
Type Description
Int32
| Improve this Doc View Source

GetAdaptiveRadialSegments(Single, Single)

Declaration
public static int GetAdaptiveRadialSegments(float r, float adaptiveQuality)
Parameters
Type Name Description
Single r
Single adaptiveQuality
Returns
Type Description
Int32
| Improve this Doc View Source

GetAdaptiveSamples(TreeGroup, TreeNode, Single)

Declaration
public static List<float> GetAdaptiveSamples(TreeGroup group, TreeNode node, float adaptiveQuality)
Parameters
Type Name Description
TreeGroup group
TreeNode node
Single adaptiveQuality
Returns
Type Description
List<Single>
| Improve this Doc View Source

GetGroup(Int32)

Declaration
public TreeGroup GetGroup(int id)
Parameters
Type Name Description
Int32 id
Returns
Type Description
TreeGroup
| Improve this Doc View Source

GetNode(Int32)

Declaration
public TreeNode GetNode(int id)
Parameters
Type Name Description
Int32 id
Returns
Type Description
TreeNode
| Improve this Doc View Source

Initialize()

Declaration
public void Initialize()
| Improve this Doc View Source

IsAncestor(TreeGroup, TreeGroup)

Declaration
public bool IsAncestor(TreeGroup ancestor, TreeGroup g)
Parameters
Type Name Description
TreeGroup ancestor
TreeGroup g
Returns
Type Description
Boolean
| Improve this Doc View Source

LockGroup(TreeGroup)

Declaration
public void LockGroup(TreeGroup g)
Parameters
Type Name Description
TreeGroup g
| Improve this Doc View Source

OptimizeMaterial(List<TreeMaterial>, List<TreeVertex>, List<TreeTriangle>)

Declaration
public bool OptimizeMaterial(List<TreeMaterial> materials, List<TreeVertex> vertices, List<TreeTriangle> triangles)
Parameters
Type Name Description
List<TreeMaterial> materials
List<TreeVertex> vertices
List<TreeTriangle> triangles
Returns
Type Description
Boolean
| Improve this Doc View Source

PreviewMesh(Matrix4x4, out Material[])

Declaration
public void PreviewMesh(Matrix4x4 worldToLocalMatrix, out Material[] outMaterials)
Parameters
Type Name Description
Matrix4x4 worldToLocalMatrix
Material[] outMaterials
| Improve this Doc View Source

SetGroupParent(TreeGroup, TreeGroup)

Declaration
public void SetGroupParent(TreeGroup g, TreeGroup parent)
Parameters
Type Name Description
TreeGroup g
TreeGroup parent
| Improve this Doc View Source

SetNodeParent(TreeNode, TreeNode)

Declaration
public void SetNodeParent(TreeNode n, TreeNode parent)
Parameters
Type Name Description
TreeNode n
TreeNode parent
| Improve this Doc View Source

UnlockGroup(TreeGroup)

Declaration
public void UnlockGroup(TreeGroup g)
Parameters
Type Name Description
TreeGroup g
| Improve this Doc View Source

UpdateDistribution(Int32)

Declaration
public void UpdateDistribution(int id)
Parameters
Type Name Description
Int32 id
| Improve this Doc View Source

UpdateFrequency(Int32)

Declaration
public void UpdateFrequency(int id)
Parameters
Type Name Description
Int32 id
| Improve this Doc View Source

UpdateMesh(Matrix4x4, List<TreeMaterial>, List<TreeVertex>, List<TreeTriangle>, List<TreeAOSphere>, Int32, Single, Single)

Declaration
public void UpdateMesh(Matrix4x4 matrix, List<TreeMaterial> materials, List<TreeVertex> verts, List<TreeTriangle> tris, List<TreeAOSphere> aoSpheres, int buildFlags, float adaptiveQuality, float aoDensity)
Parameters
Type Name Description
Matrix4x4 matrix
List<TreeMaterial> materials
List<TreeVertex> verts
List<TreeTriangle> tris
List<TreeAOSphere> aoSpheres
Int32 buildFlags
Single adaptiveQuality
Single aoDensity
| Improve this Doc View Source

UpdateMesh(Matrix4x4, out Material[])

Declaration
public void UpdateMesh(Matrix4x4 worldToLocalMatrix, out Material[] outMaterials)
Parameters
Type Name Description
Matrix4x4 worldToLocalMatrix
Material[] outMaterials
| Improve this Doc View Source

UpdateSeed(Int32)

Declaration
public void UpdateSeed(int id)
Parameters
Type Name Description
Int32 id
| Improve this Doc View Source

ValidateReferences()

Declaration
public void ValidateReferences()

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