protected void ConvertOneShotToFXMakerBurst()
    {
        ParticleEmitter  pe       = m_Sel.GetComponent <ParticleEmitter>();
        ParticleAnimator pa       = m_Sel.GetComponent <ParticleAnimator>();
        bool             bOneShot = (bool)NgSerialized.GetPropertyValue(new SerializedObject(pe as ParticleEmitter), "m_OneShot");

        if (bOneShot && m_Sel.m_bBurst == false)
        {
            m_Sel.m_bBurst              = true;
            m_Sel.m_fBurstRepeatTime    = pe.maxEnergy;
            m_Sel.m_nBurstRepeatCount   = 1;
            m_Sel.m_fBurstEmissionCount = (int)Random.Range(pe.minEmission, pe.maxEmission + 1);

            pe.emit = false;
            NgSerialized.SetPropertyValue(new SerializedObject(pe as ParticleEmitter), "m_OneShot", false, true);
            if (pa != null)
            {
                pa.autodestruct = false;
            }
        }
    }
 void SetLocalEulerAnglesHint(Transform trans, Vector3 localEulerAngle)
 {
     NgSerialized.SetPropertyValue(new SerializedObject(trans), "m_LocalEulerAnglesHint", localEulerAngle, true);
 }