private void OnModified(VFXObject obj) { if (!isOutput && (m_ExprSlots == null || m_ValueExpr == null)) { if (outputSlots.Count != 0) { m_ExprSlots = outputSlots[0].GetVFXValueTypeSlots().ToArray(); m_ValueExpr = m_ExprSlots.Select(t => t.DefaultExpression(valueMode)).ToArray(); } else { m_ExprSlots = new VFXSlot[0]; m_ValueExpr = new VFXValue[0]; } } }
void DataModified(VFXObject o) { capacity = ((VFXDataParticle)o).capacity; }