コード例 #1
0
 public override void PreRender()
 {
     lineGO.SetStart(SceneStartF());
     lineGO.SetEnd(SceneEndF());
     lineGO.SetColor(ColorF());
     // line width is set in world units!
     lineGO.SetLineWidth(LineWidth.WorldValuef);
     lineGO.SetLayer(LayerF(), true);
 }
コード例 #2
0
        public static fLineGameObject CreateLineGO(string sName, Colorf color, float fLineWidth)
        {
            GameObject go = new GameObject(sName);
            CurveRendererImplementation curveRen = CurveRendererSource.Build();

            curveRen.initialize(go, new Colorf(Colorf.Black, 0.75f));
            fLineGameObject lgo = new fLineGameObject(go, curveRen);

            lgo.SetColor(color);
            lgo.SetLineWidth(fLineWidth);
            return(lgo);
        }
コード例 #3
0
        void Update()
        {
            LineGO.SetName(NameF());
            LineGO.SetColor(ColorF());
            LineGO.SetStart(StartF());
            LineGO.SetEnd(EndF());
            LineGO.SetLineWidth(LineWidthF());

            if (DeleteConditionF() == true || DeleteNextFrame == true)
            {
                LineGO.Destroy();
            }
        }