I'm trying to add an exporter for the Tree Component of Unity 2019.4.0f1
The source code from Visual Studio looks like this:
using UnityEngine.Bindings;
namespace UnityEngine
{
//
// Summary:
// Tree Component for the tree creator.
[NativeHeader("Modules/Terrain/Public/Tree.h")]
public sealed class Tree : Component
{
public Tree();
//
// Summary:
// Data asociated to the Tree.
[NativeProperty("TreeData")]
public ScriptableObject data { get; set; }
//
// Summary:
// Tells if there is wind data exported from SpeedTree are saved on this component.
public bool hasSpeedTreeWind { get; }
}
}
The size is 24 which could only contain one PPtr property (instead of two), and is zero. So I can't find out the TreeData property from it. According to Asset Studio, the solo property is m_SpeedTreeWindAsset.
Another problem is the MonoBehaviour with name Tree Data has failed to export its script and properties.
To summary up, the issues are I can't export the TreeData property of the Tree Component, nor the Tree Data it self.
I'm trying to add an exporter for the
Tree
Component of Unity 2019.4.0f1The source code from Visual Studio looks like this:
Parts of the Tree.prefab looks like this:
And the hex of this Tree component in Windows standard alone build looks like this:
The size is 24 which could only contain one
PPtr
property (instead of two), and is zero. So I can't find out theTreeData
property from it. According to Asset Studio, the solo property ism_SpeedTreeWindAsset
.Another problem is the
MonoBehaviour
with nameTree Data
has failed to export its script and properties.To summary up, the issues are I can't export the
TreeData
property of theTree
Component, nor theTree Data
it self.Please help me with this if possible.
Thanks.