---恢复内容开始---

以“3D BarChart”为例。

1.Select a theme.(选择一个主题模板)

2.Set up categories and groups.(设置类型和组)

3.You can set values from the inspector.(你可以从检查面板中设置值)

4.Creat a new script.(创建一个新脚本)

Note:(1)Names should be as defined in the editor (名字应该在编辑器中被定义过)

(2)Set the value of a bar using the category name and group that are defined in the inspector.(使用检查器中定义的类别名称和组设置栏的值)

5.Creat an object with the sample script! (建立空物体挂在脚本)

6.Experiment with setting view size in the editor.

7.Experiment with values  customization.

8.在Categories中设置Bar的样式。

9.Bar Clickded

 using System.Collections;
using System.Collections.Generic;
using ChartAndGraph;
using UnityEngine; public class MyBarSample : MonoBehaviour
{
public BarChart chart;
// Start is called before the first frame update
void Start()
{ chart.DataSource.SetValue("koko","one",);
chart.DataSource.SlideValue("koko","one",,3f);
chart.DataSource.SlideValue("juhnko","one",,5f);
}
//lets handle a bar click event
public void OnBarClick(BarChart.BarEventArgs args)
{
Debug.Log("点击的类型是:"+args.Category+"所在的组是:"+args.Group+"值为:"+args.Value);
} }

Hover can be handled the same way.

最新文章

  1. 深入理解SQL注入绕过WAF和过滤机制
  2. 对于JQuery的一些见解
  3. 使用AJAX完成用户名是否存在异步校验
  4. Cannot find protocol declaration for "XXDelegate" 找不到协议错误
  5. HDOJ 1024 Max Sum Plus Plus -- 动态规划
  6. Delphi程序自删除的几种方法
  7. Qt exe图标
  8. python去除\ufeff、\xa0、\u3000
  9. Java-排序算法-冒泡排序
  10. 一个简单有效的kubernetes部署案例
  11. Java编程实现获取本机IP和计算机名的功能
  12. PHP生成zip压缩包
  13. 【maven】在IDEA上 使用maven进行打包时报错:Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar
  14. .net core 2.0 mvc 初步学习
  15. 如何解决Django与Vue语法的冲突
  16. Antlr与Regex
  17. FISCO-BCOS平台共识
  18. Flash中的注册点和中心点
  19. Maven / Nexus 的用法和经验
  20. keystone DB in devstack

热门文章

  1. jquery中 $(xxx).each() 和 $.each()的区别,以及enter键一键登录
  2. case语句!
  3. Centos610无桌面安装Docker-内核升级
  4. python记录点
  5. 《iOS开发实战 从入门到上架App Store(第2版)》书籍目录
  6. java课后问题解答
  7. MNIST手写数字分类simple版(03-2)
  8. c++中的运算符重载operator1(翁恺c++公开课[30]学习笔记)
  9. rails work
  10. matplotlib常见操作