public float thicknessScale = 0.8f; /**< Scales section thickness.*/ void OnEnable() { CreateMeshIfNeeded(); Camera.onPreCull += UpdateRenderer; rope = GetComponent <ObiRopeBase>(); smoother = GetComponent <ObiPathSmoother>(); }
public float thicknessScale = 0.8f; /**< Scales section thickness.*/ void OnEnable() { CreateMeshIfNeeded(); #if (UNITY_2019_1_OR_NEWER) renderCallback = new System.Action <ScriptableRenderContext, Camera>((cntxt, cam) => { UpdateRenderer(cam); }); RenderPipelineManager.beginCameraRendering += renderCallback; #endif Camera.onPreCull += UpdateRenderer; rope = GetComponent <ObiRopeBase>(); smoother = GetComponent <ObiPathSmoother>(); }
public float thicknessScale = 0.8f; /**< Scales section thickness.*/ void OnEnable() { smoother = GetComponent <ObiPathSmoother>(); smoother.OnCurveGenerated += UpdateRenderer; CreateMeshIfNeeded(); }
void OnEnable() { smoother = GetComponent <ObiPathSmoother>(); smoother.OnCurveGenerated += UpdateRenderer; PreprocessInputMesh(); }
void OnEnable() { instances = new List <GameObject>(); smoother = GetComponent <ObiPathSmoother>(); smoother.OnCurveGenerated += UpdatePlugs; }
public void OnEnable() { shape = (ObiPathSmoother)target; }