public float thicknessScale = 0.8f;  /**< Scales section thickness.*/

        void OnEnable()
        {
            CreateMeshIfNeeded();

            Camera.onPreCull += UpdateRenderer;

            rope     = GetComponent <ObiRopeBase>();
            smoother = GetComponent <ObiPathSmoother>();
        }
Esempio n. 2
0
        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();
        }
Esempio n. 4
0
 void OnEnable()
 {
     smoother = GetComponent <ObiPathSmoother>();
     smoother.OnCurveGenerated += UpdateRenderer;
     PreprocessInputMesh();
 }
 void OnEnable()
 {
     instances = new List <GameObject>();
     smoother  = GetComponent <ObiPathSmoother>();
     smoother.OnCurveGenerated += UpdatePlugs;
 }
Esempio n. 6
0
 public void OnEnable()
 {
     shape = (ObiPathSmoother)target;
 }