private void OnEnable() { softBone = target as EZSoftBone; m_RootBones = serializedObject.FindProperty("m_RootBones"); m_EndBones = serializedObject.FindProperty("m_EndBones"); m_StartDepth = serializedObject.FindProperty("m_StartDepth"); m_SiblingConstraints = serializedObject.FindProperty("m_SiblingConstraints"); m_LengthUnification = serializedObject.FindProperty("m_LengthUnification"); m_SiblingRotationConstraints = serializedObject.FindProperty("m_SiblingRotationConstraints"); m_ClosedSiblings = serializedObject.FindProperty("m_ClosedSiblings"); m_CollisionLayers = serializedObject.FindProperty("m_CollisionLayers"); m_ExtraColliders = serializedObject.FindProperty("m_ExtraColliders"); m_Radius = serializedObject.FindProperty("m_Radius"); m_RadiusCurve = serializedObject.FindProperty("m_RadiusCurve"); m_Iterations = serializedObject.FindProperty("m_Iterations"); m_Material = serializedObject.FindProperty("m_Material"); m_SleepThreshold = serializedObject.FindProperty("m_SleepThreshold"); m_Gravity = serializedObject.FindProperty("m_Gravity"); m_ForceModule = serializedObject.FindProperty("m_ForceModule"); m_GravityAligner = serializedObject.FindProperty("m_GravityAligner"); m_ForceSpace = serializedObject.FindProperty("m_ForceSpace"); m_SimulateSpace = serializedObject.FindProperty("m_SimulateSpace"); }
private void OnEnable() { softBone = target as EZSoftBone; m_RootBones = serializedObject.FindProperty(nameof(m_RootBones)); m_EndBones = serializedObject.FindProperty(nameof(m_EndBones)); m_Material = serializedObject.FindProperty(nameof(m_Material)); m_StartDepth = serializedObject.FindProperty(nameof(m_StartDepth)); m_SiblingConstraints = serializedObject.FindProperty(nameof(m_SiblingConstraints)); m_ClosedSiblings = serializedObject.FindProperty(nameof(m_ClosedSiblings)); m_SiblingRotationConstraints = serializedObject.FindProperty(nameof(m_SiblingRotationConstraints)); m_LengthUnification = serializedObject.FindProperty(nameof(m_LengthUnification)); m_CollisionLayers = serializedObject.FindProperty(nameof(m_CollisionLayers)); m_ExtraColliders = serializedObject.FindProperty(nameof(m_ExtraColliders)); m_Radius = serializedObject.FindProperty(nameof(m_Radius)); m_RadiusCurve = serializedObject.FindProperty(nameof(m_RadiusCurve)); m_DeltaTimeMode = serializedObject.FindProperty(nameof(m_DeltaTimeMode)); m_ConstantDeltaTime = serializedObject.FindProperty(nameof(m_ConstantDeltaTime)); m_Iterations = serializedObject.FindProperty(nameof(m_Iterations)); m_SleepThreshold = serializedObject.FindProperty(nameof(m_SleepThreshold)); m_Gravity = serializedObject.FindProperty(nameof(m_Gravity)); m_GravityAligner = serializedObject.FindProperty(nameof(m_GravityAligner)); m_ForceModule = serializedObject.FindProperty(nameof(m_ForceModule)); m_ForceScale = serializedObject.FindProperty(nameof(m_ForceScale)); m_SimulateSpace = serializedObject.FindProperty(nameof(m_SimulateSpace)); }