Class TreeData
Assembly: UnityEditor.dll
Syntax
public class TreeData : ScriptableObject
Fields
|
Improve this Doc
View Source
branchGroups
Declaration
public TreeGroupBranch[] branchGroups
Field Value
|
Improve this Doc
View Source
isInPreviewMode
Declaration
public bool isInPreviewMode
Field Value
|
Improve this Doc
View Source
leafGroups
Declaration
public TreeGroupLeaf[] leafGroups
Field Value
|
Improve this Doc
View Source
materialHash
Declaration
public string materialHash
Field Value
|
Improve this Doc
View Source
mesh
Declaration
Field Value
|
Improve this Doc
View Source
nodes
Declaration
Field Value
|
Improve this Doc
View Source
optimizedCutoutMaterial
Declaration
public Material optimizedCutoutMaterial
Field Value
|
Improve this Doc
View Source
optimizedSolidMaterial
Declaration
public Material optimizedSolidMaterial
Field Value
|
Improve this Doc
View Source
root
Declaration
public TreeGroupRoot root
Field Value
Methods
|
Improve this Doc
View Source
AddGroup(TreeGroup, Type)
Declaration
public TreeGroup AddGroup(TreeGroup parent, Type type)
Parameters
Returns
|
Improve this Doc
View Source
AddNode(TreeGroup, TreeNode)
Declaration
public TreeNode AddNode(TreeGroup g, TreeNode parent)
Parameters
Returns
|
Improve this Doc
View Source
AddNode(TreeGroup, TreeNode, Boolean)
Declaration
public TreeNode AddNode(TreeGroup g, TreeNode parent, bool validate)
Parameters
Returns
|
Improve this Doc
View Source
CheckExternalChanges()
Declaration
public bool CheckExternalChanges()
Returns
|
Improve this Doc
View Source
ClearReferences()
Declaration
public void ClearReferences()
|
Improve this Doc
View Source
DeleteGroup(TreeGroup)
Declaration
public void DeleteGroup(TreeGroup g)
Parameters
|
Improve this Doc
View Source
DeleteNode(TreeNode)
Declaration
public void DeleteNode(TreeNode n)
Parameters
|
Improve this Doc
View Source
DeleteNode(TreeNode, Boolean)
Declaration
public void DeleteNode(TreeNode n, bool validate)
Parameters
|
Improve this Doc
View Source
DuplicateGroup(TreeGroup)
Declaration
public TreeGroup DuplicateGroup(TreeGroup g)
Parameters
Returns
|
Improve this Doc
View Source
DuplicateNode(TreeNode)
Declaration
public TreeNode DuplicateNode(TreeNode n)
Parameters
Returns
|
Improve this Doc
View Source
GetAdaptiveHeightSegments(Single, Single)
Declaration
public static int GetAdaptiveHeightSegments(float h, float adaptiveQuality)
Parameters
Returns
|
Improve this Doc
View Source
GetAdaptiveRadialSegments(Single, Single)
Declaration
public static int GetAdaptiveRadialSegments(float r, float adaptiveQuality)
Parameters
Returns
|
Improve this Doc
View Source
GetAdaptiveSamples(TreeGroup, TreeNode, Single)
Declaration
public static List<float> GetAdaptiveSamples(TreeGroup group, TreeNode node, float adaptiveQuality)
Parameters
Returns
|
Improve this Doc
View Source
GetGroup(Int32)
Declaration
public TreeGroup GetGroup(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
|
Improve this Doc
View Source
GetNode(Int32)
Declaration
public TreeNode GetNode(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
|
Improve this Doc
View Source
Initialize()
Declaration
|
Improve this Doc
View Source
IsAncestor(TreeGroup, TreeGroup)
Declaration
public bool IsAncestor(TreeGroup ancestor, TreeGroup g)
Parameters
Returns
|
Improve this Doc
View Source
LockGroup(TreeGroup)
Declaration
public void LockGroup(TreeGroup g)
Parameters
|
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
Returns
|
Improve this Doc
View Source
PreviewMesh(Matrix4x4, out Material[])
Declaration
public void PreviewMesh(Matrix4x4 worldToLocalMatrix, out Material[] outMaterials)
Parameters
|
Improve this Doc
View Source
SetGroupParent(TreeGroup, TreeGroup)
Declaration
public void SetGroupParent(TreeGroup g, TreeGroup parent)
Parameters
|
Improve this Doc
View Source
SetNodeParent(TreeNode, TreeNode)
Declaration
public void SetNodeParent(TreeNode n, TreeNode parent)
Parameters
|
Improve this Doc
View Source
UnlockGroup(TreeGroup)
Declaration
public void UnlockGroup(TreeGroup g)
Parameters
|
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
|
Improve this Doc
View Source
UpdateMesh(Matrix4x4, out Material[])
Declaration
public void UpdateMesh(Matrix4x4 worldToLocalMatrix, out Material[] outMaterials)
Parameters
|
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