python+unity手势控制地球大小

效果图如下

具体操作如下

1 在unity窗口添加一个球体

2 给球体添加材质,材质图片使用地球图片

地球图片如下

unity材质设置截图如下

3 编写地球控制脚本

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class test : MonoBehaviour
{
    // Start is called before the first frame update
    public float s = 1;
    void Start()
    {
        //设置帧频
        Application.targetFrameRate = 60;
        this.transform.localScal

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-06-19 00:06:02       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-19 00:06:02       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-19 00:06:02       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-19 00:06:02       18 阅读

热门阅读

  1. 如何构建构建一个AI驱动的通用爬虫

    2024-06-19 00:06:02       8 阅读
  2. Shell中执行.sh文件的常见方式

    2024-06-19 00:06:02       8 阅读
  3. 平移矩阵中的数学思考

    2024-06-19 00:06:02       8 阅读
  4. Spring Cloud Gateway 概述与基本配置(上)

    2024-06-19 00:06:02       7 阅读
  5. 从零学习es8

    2024-06-19 00:06:02       6 阅读
  6. Stage模型

    2024-06-19 00:06:02       6 阅读