Class PulseShaderHandler
Script for generating pulse shader effect on the surface of a mesh.
Inheritance
PulseShaderHandler
Assembly: cs.temp.dll.dll
public class PulseShaderHandler : MonoBehaviour
Properties
Automatically begin repeated pulsing.
Declaration
public bool AutoStart { get; set; }
Property Value
Shader parameter name to set the pulse origin, in local space.
Declaration
public string OriginParamName { get; set; }
Property Value
Shader parameter name to drive the pulse radius.
Declaration
public string ParamName { get; set; }
Property Value
How long in seconds the pulse should animate.
Declaration
public float PulseAnimationDuration { get; set; }
Property Value
Minimum time to wait between each pulse.
Declaration
public float PulseRepeatMinDelay { get; set; }
Property Value
Declaration
public Material SurfaceMat { get; set; }
Property Value
Type |
Description |
Material |
|
Methods
Declaration
protected void ApplyPulseRadiusToMaterial(float radius)
Parameters
Type |
Name |
Description |
Single |
radius |
|
Declaration
protected virtual void OnDestroy()
Declaration
public void PulseOnce(bool cancelPreviousPulse = true)
Parameters
Type |
Name |
Description |
Boolean |
cancelPreviousPulse |
|
Declaration
protected void ResetPulseMaterial()
Declaration
public void SetLocalOrigin(Vector3 origin)
Parameters
Type |
Name |
Description |
Vector3 |
origin |
|
Declaration
protected virtual void Start()
Declaration
protected void StartPulsing()
Declaration
protected void StopPulsing(bool finishCurrentPulse = true)
Parameters
Type |
Name |
Description |
Boolean |
finishCurrentPulse |
|
Declaration
protected virtual void Update()