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

        void OnEnable()
        {
            CreateMeshIfNeeded();

            Camera.onPreCull += UpdateRenderer;

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