Class Distorter
Assembly: cs.temp.dll.dll
public abstract class Distorter : MonoBehaviour, IComparable<Distorter>, MonoBehaviour
Properties
Declaration
public bool DistortionEnabled { get; }
Property Value
Declaration
public bool DistortionEnabled { get; }
Property Value
Declaration
public int DistortOrder { get; set; }
Property Value
Declaration
public int DistortOrder { get; set; }
Property Value
Declaration
public float DistortStrength { get; set; }
Property Value
Declaration
public float DistortStrength { get; set; }
Property Value
Methods
Declaration
public int CompareTo(Distorter other)
Parameters
Returns
Declaration
public int CompareTo(Distorter other)
Parameters
Returns
Distorts a world-space point
Automatically applies DistortStrength and ensures that strength never exceeds 1
Declaration
public Vector3 DistortPoint(Vector3 point, float strength = 1F)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Single |
strength |
|
Returns
Distorts a world-space point
Automatically applies DistortStrength and ensures that strength never exceeds 1
Declaration
public Vector3 DistortPoint(Vector3 point, float strength = 1F)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Single |
strength |
|
Returns
Internal function where position distortion is done
Declaration
protected abstract Vector3 DistortPointInternal(Vector3 point, float strength)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Single |
strength |
|
Returns
Internal function where position distortion is done
Declaration
protected abstract Vector3 DistortPointInternal(Vector3 point, float strength)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Single |
strength |
|
Returns
Distorts a world-space scale
Automatically applies DistortStrength and ensures that strength never exceeds 1
Declaration
public Vector3 DistortScale(Vector3 scale, float strength = 1F)
Parameters
Type |
Name |
Description |
Vector3 |
scale |
|
Single |
strength |
|
Returns
Distorts a world-space scale
Automatically applies DistortStrength and ensures that strength never exceeds 1
Declaration
public Vector3 DistortScale(Vector3 scale, float strength = 1F)
Parameters
Type |
Name |
Description |
Vector3 |
scale |
|
Single |
strength |
|
Returns
Internal function where scale distortion is done
Declaration
protected abstract Vector3 DistortScaleInternal(Vector3 point, float strength)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Single |
strength |
|
Returns
Internal function where scale distortion is done
Declaration
protected abstract Vector3 DistortScaleInternal(Vector3 point, float strength)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Single |
strength |
|
Returns
Declaration
protected virtual void OnDisable()
Declaration
protected virtual void OnDisable()
Declaration
protected virtual void OnEnable()
Declaration
protected virtual void OnEnable()
Implements
IComparable<>
MonoBehaviour