void InitOnMainThread(fGameObject parentGO) { LineGO = GameObjectFactory.CreateLineGO(NameF(), ColorF(), LineWidthF(), LineWidthType.World); LineGO.SetStart(StartF()); LineGO.SetEnd(EndF()); if (parentGO != null) { parentGO.AddChild(LineGO, false); } LineGO.GetComponent <PreRenderBehavior>().AddAction(() => { Update(); }); if (OnCreateF != null) { OnCreateF(LineGO); } }
public override void Setup() { lineGO = GameObjectFactory.CreateLineGO("dimension_line", ColorF(), LineWidth.WorldValuef, LineWidthType.World); lineGO.SetLayer(LayerF()); }