/// <a href="http://bit.ly/2Rlzvru">Set a int field inside a CustomAsset compound object. It checks for read/write and that the field is different before triggering a change</a> public static void Set(this WithEmitter asset, ref int field, int from) { asset.Set <int>(ref field, from); }
/// <a href="http://bit.ly/2Rlzvru">Set a Quaternion inside a CustomAsset compound object. It checks for read/write and that the field is approximately different before triggering a change</a> public static void Set(this WithEmitter asset, ref Quaternion field, Quaternion from) => asset.Set(ref field, from, (a, b) => a == b);
/// <a href="http://bit.ly/2Rlzvru">Set a double field inside a CustomAsset compound object. It checks for read/write and that the field is different before triggering a change</a> public static void Set(this WithEmitter asset, ref double field, double from) => asset.Set(ref field, from, Compare.AlmostEqual);
/// <a href="http://bit.ly/2Rlzvru">Set a Vector4 inside a CustomAsset compound object. It checks for read/write and that the field is approximately different before triggering a change</a> public static void Set(this WithEmitter asset, ref Vector4 field, Vector4 from) => asset.Set(ref field, from, (a, b) => a == b);