浏览代码

Adding randomizer

/dr-test1
Jon Hogins 5 年前
当前提交
a7e59530
共有 8 个文件被更改,包括 60 次插入0 次删除
  1. 8
      com.unity.perception/Editor/Randomization.meta
  2. 3
      com.unity.perception/Runtime/Randomization.meta
  3. 9
      com.unity.perception/Editor/Randomization/RandomizerEditor.cs
  4. 11
      com.unity.perception/Editor/Randomization/RandomizerEditor.cs.meta
  5. 26
      com.unity.perception/Runtime/Randomization/Randomizer.cs
  6. 3
      com.unity.perception/Runtime/Randomization/Randomizer.cs.meta

8
com.unity.perception/Editor/Randomization.meta


fileFormatVersion: 2
guid: 8118d82ac4f24df4ab6f1be4d9175224
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

3
com.unity.perception/Runtime/Randomization.meta


fileFormatVersion: 2
guid: 9f6395dd1591475b81874ea91d6e9f6a
timeCreated: 1589383573

9
com.unity.perception/Editor/Randomization/RandomizerEditor.cs


using UnityEditor;
namespace UnityEditor.Perception.Randomization
{
public class RandomizerEditor : Editor
{
}
}

11
com.unity.perception/Editor/Randomization/RandomizerEditor.cs.meta


fileFormatVersion: 2
guid: c3902fbed23a52f4e93c142804bef8e2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

26
com.unity.perception/Runtime/Randomization/Randomizer.cs


using System;
using System.Collections.Generic;
using UnityEngine;
namespace UnityEngine.Perception.Randomization
{
public class Randomizer : MonoBehaviour
{
[SerializeField]
public List<RandomizationEntry> randomizationEntries = new List<RandomizationEntry>();
void Update()
{
randomizationEntries
}
}
public class RandomizationEntry
{
public GameObject GameObject;
public Type ComponentType;
public string MemberName;
public float Min;
public float Max;
}
}

3
com.unity.perception/Runtime/Randomization/Randomizer.cs.meta


fileFormatVersion: 2
guid: e18db86d4c0f4b57b10daa3bac1f2c66
timeCreated: 1589383813
正在加载...
取消
保存