unity2020 webgl 加载配置文件 ScriptableObject 和StreamingAssets
一、使用ScriptableObject:(优点:unity自带无需配置,缺点:打包后无法在进行修改)
建议项目初期,配置项目数据相关的数值参数。便于新项目或策划修改。
1.创建配置文件相关的类型
using System;
using System.Collections.Generic;
using UnityEngine;
public class Student : ScriptableObject
{
public List<StudentInfo> Clients=new
原创
2021-09-22 14:45:45 ·
1782 阅读 ·
0 评论