Struct ScreenImpact
One impact on a screen’s panel. The three values fix the crack pattern, so a saved impact given back to Damage draws the same picture.
Assembly: DarkEffekt.Terminal
Section titled “Assembly: DarkEffekt.Terminal”[Serializable]public struct ScreenImpactFields
Section titled “Fields”position
Section titled “position”[Tooltip("Where the panel was hit, as a UV on the screen: (0, 0) is the bottom left.")]public Vector2 positionseverity
Section titled “severity”[Tooltip("How hard, from 0 to 1.")][Range(0, 1)]public float severity[Tooltip("Picks the crack pattern.")]public int seedMethods
Section titled “Methods”Equals(ScreenImpact)
Section titled “Equals(ScreenImpact)”Indicates whether the current object is equal to another object of the same type.
public bool Equals(ScreenImpact other)Returns
Section titled “Returns”System.Boolean: true if the current object is equal to the other parameter; otherwise, false.
Parameters
Section titled “Parameters”| Type | Name | Description |
|---|---|---|
| DarkEffekt.Terminal.Unity.ScreenImpact | other | An object to compare with this object. |
Equals(object)
Section titled “Equals(object)”Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)Returns
Section titled “Returns”System.Boolean: true if obj and this instance are the same type and represent the same value; otherwise, false.
Parameters
Section titled “Parameters”| Type | Name | Description |
|---|---|---|
System.Object |
obj | The object to compare with the current instance. |
GetHashCode()
Section titled “GetHashCode()”Returns the hash code for this instance.
public override int GetHashCode()Returns
Section titled “Returns”System.Int32: A 32-bit signed integer that is the hash code for this instance.