Пример #1
0
        /// <inheritdoc />
        public override void SetParentTRS(ParticleTransform transform, ParticleSystem parentSystem)
        {
            base.SetParentTRS(transform, parentSystem);

            if (isParentNameDirty)
            {
                RemoveControlGroup();

                Parent = parentSystem?.GetEmitterByName(ParentName);

                AddControlGroup();

                isParentNameDirty = false;
            }
        }
        /// <inheritdoc />
        public override void SetParentTRS(ParticleTransform transform, ParticleSystem parentSystem)
        {
            base.SetParentTRS(transform, parentSystem);

            if (isParentNameDirty)
            {
                RemoveControlGroup();

                Parent = parentSystem?.GetEmitterByName(ParentName);

                AddControlGroup();

                isParentNameDirty = false;
            }
        }
Пример #3
0
 /// <inheritdoc />
 public override void SetParentTRS(ParticleTransform transform, ParticleSystem parent)
 {
     base.SetParentTRS(transform, parent);
     parentScale = (InheritScale) ? transform.WorldScale.X : 1f;
 }