Beispiel #1
0
        internal void CopyTo(InfluenceVolume data)
        {
            //keep the m_Probe as it is used to reset the probe

            data.m_Shape   = m_Shape;
            data.m_Offset  = m_Offset;
            data.m_BoxSize = m_BoxSize;
            data.m_BoxBlendDistancePositive       = m_BoxBlendDistancePositive;
            data.m_BoxBlendDistanceNegative       = m_BoxBlendDistanceNegative;
            data.m_BoxBlendNormalDistancePositive = m_BoxBlendNormalDistancePositive;
            data.m_BoxBlendNormalDistanceNegative = m_BoxBlendNormalDistanceNegative;
            data.m_BoxSideFadePositive            = m_BoxSideFadePositive;
            data.m_BoxSideFadeNegative            = m_BoxSideFadeNegative;
            data.m_SphereRadius              = m_SphereRadius;
            data.m_SphereBlendDistance       = m_SphereBlendDistance;
            data.m_SphereBlendNormalDistance = m_SphereBlendNormalDistance;

            data.m_EditorAdvancedModeBlendDistancePositive       = m_EditorAdvancedModeBlendDistancePositive;
            data.m_EditorAdvancedModeBlendDistanceNegative       = m_EditorAdvancedModeBlendDistanceNegative;
            data.m_EditorSimplifiedModeBlendDistance             = m_EditorSimplifiedModeBlendDistance;
            data.m_EditorAdvancedModeBlendNormalDistancePositive = m_EditorAdvancedModeBlendNormalDistancePositive;
            data.m_EditorAdvancedModeBlendNormalDistanceNegative = m_EditorAdvancedModeBlendNormalDistanceNegative;
            data.m_EditorSimplifiedModeBlendNormalDistance       = m_EditorSimplifiedModeBlendNormalDistance;
            data.m_EditorAdvancedModeEnabled = m_EditorAdvancedModeEnabled;
        }
 internal void Awake()
 {
     if (influenceVolume == null)
     {
         influenceVolume = new InfluenceVolume();
     }
     influenceVolume.Init(this);
 }