559 lines
16 KiB
C#
559 lines
16 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Rendering;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x02000234 RID: 564
|
|
[UsedByNativeCode]
|
|
public sealed class Terrain : Behaviour
|
|
{
|
|
// Token: 0x060026E5 RID: 9957
|
|
[RequiredByNativeCode]
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern TerrainData GetTerrainDataInternal();
|
|
|
|
// Token: 0x1700090D RID: 2317
|
|
// (get) Token: 0x060026E6 RID: 9958
|
|
// (set) Token: 0x060026E7 RID: 9959
|
|
public extern TerrainData terrainData
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700090E RID: 2318
|
|
// (get) Token: 0x060026E8 RID: 9960
|
|
// (set) Token: 0x060026E9 RID: 9961
|
|
public extern float treeDistance
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700090F RID: 2319
|
|
// (get) Token: 0x060026EA RID: 9962
|
|
// (set) Token: 0x060026EB RID: 9963
|
|
public extern float treeBillboardDistance
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000910 RID: 2320
|
|
// (get) Token: 0x060026EC RID: 9964
|
|
// (set) Token: 0x060026ED RID: 9965
|
|
public extern float treeCrossFadeLength
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000911 RID: 2321
|
|
// (get) Token: 0x060026EE RID: 9966
|
|
// (set) Token: 0x060026EF RID: 9967
|
|
public extern int treeMaximumFullLODCount
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000912 RID: 2322
|
|
// (get) Token: 0x060026F0 RID: 9968
|
|
// (set) Token: 0x060026F1 RID: 9969
|
|
public extern float detailObjectDistance
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000913 RID: 2323
|
|
// (get) Token: 0x060026F2 RID: 9970
|
|
// (set) Token: 0x060026F3 RID: 9971
|
|
public extern float detailObjectDensity
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000914 RID: 2324
|
|
// (get) Token: 0x060026F4 RID: 9972
|
|
// (set) Token: 0x060026F5 RID: 9973
|
|
public extern float heightmapPixelError
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000915 RID: 2325
|
|
// (get) Token: 0x060026F6 RID: 9974
|
|
// (set) Token: 0x060026F7 RID: 9975
|
|
public extern int heightmapMaximumLOD
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000916 RID: 2326
|
|
// (get) Token: 0x060026F8 RID: 9976
|
|
// (set) Token: 0x060026F9 RID: 9977
|
|
public extern float basemapDistance
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000917 RID: 2327
|
|
// (get) Token: 0x060026FA RID: 9978 RVA: 0x0002CACC File Offset: 0x0002ACCC
|
|
// (set) Token: 0x060026FB RID: 9979 RVA: 0x0002CAE8 File Offset: 0x0002ACE8
|
|
[Obsolete("use basemapDistance", true)]
|
|
public float splatmapDistance
|
|
{
|
|
get
|
|
{
|
|
return this.basemapDistance;
|
|
}
|
|
set
|
|
{
|
|
this.basemapDistance = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000918 RID: 2328
|
|
// (get) Token: 0x060026FC RID: 9980
|
|
// (set) Token: 0x060026FD RID: 9981
|
|
public extern int lightmapIndex
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000919 RID: 2329
|
|
// (get) Token: 0x060026FE RID: 9982
|
|
// (set) Token: 0x060026FF RID: 9983
|
|
public extern int realtimeLightmapIndex
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700091A RID: 2330
|
|
// (get) Token: 0x06002700 RID: 9984 RVA: 0x0002CAF4 File Offset: 0x0002ACF4
|
|
// (set) Token: 0x06002701 RID: 9985 RVA: 0x0002CB14 File Offset: 0x0002AD14
|
|
public Vector4 lightmapScaleOffset
|
|
{
|
|
get
|
|
{
|
|
Vector4 vector;
|
|
this.INTERNAL_get_lightmapScaleOffset(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_lightmapScaleOffset(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002702 RID: 9986
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_lightmapScaleOffset(out Vector4 value);
|
|
|
|
// Token: 0x06002703 RID: 9987
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_lightmapScaleOffset(ref Vector4 value);
|
|
|
|
// Token: 0x1700091B RID: 2331
|
|
// (get) Token: 0x06002704 RID: 9988 RVA: 0x0002CB20 File Offset: 0x0002AD20
|
|
// (set) Token: 0x06002705 RID: 9989 RVA: 0x0002CB40 File Offset: 0x0002AD40
|
|
public Vector4 realtimeLightmapScaleOffset
|
|
{
|
|
get
|
|
{
|
|
Vector4 vector;
|
|
this.INTERNAL_get_realtimeLightmapScaleOffset(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_realtimeLightmapScaleOffset(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002706 RID: 9990
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_realtimeLightmapScaleOffset(out Vector4 value);
|
|
|
|
// Token: 0x06002707 RID: 9991
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_realtimeLightmapScaleOffset(ref Vector4 value);
|
|
|
|
// Token: 0x1700091C RID: 2332
|
|
// (get) Token: 0x06002708 RID: 9992
|
|
// (set) Token: 0x06002709 RID: 9993
|
|
public extern bool castShadows
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700091D RID: 2333
|
|
// (get) Token: 0x0600270A RID: 9994
|
|
// (set) Token: 0x0600270B RID: 9995
|
|
public extern ReflectionProbeUsage reflectionProbeUsage
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x0600270C RID: 9996
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void GetClosestReflectionProbesInternal(object result);
|
|
|
|
// Token: 0x0600270D RID: 9997 RVA: 0x0002CB4C File Offset: 0x0002AD4C
|
|
public void GetClosestReflectionProbes(List<ReflectionProbeBlendInfo> result)
|
|
{
|
|
this.GetClosestReflectionProbesInternal(result);
|
|
}
|
|
|
|
// Token: 0x1700091E RID: 2334
|
|
// (get) Token: 0x0600270E RID: 9998
|
|
// (set) Token: 0x0600270F RID: 9999
|
|
public extern Terrain.MaterialType materialType
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700091F RID: 2335
|
|
// (get) Token: 0x06002710 RID: 10000
|
|
// (set) Token: 0x06002711 RID: 10001
|
|
public extern Material materialTemplate
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000920 RID: 2336
|
|
// (get) Token: 0x06002712 RID: 10002 RVA: 0x0002CB58 File Offset: 0x0002AD58
|
|
// (set) Token: 0x06002713 RID: 10003 RVA: 0x0002CB78 File Offset: 0x0002AD78
|
|
public Color legacySpecular
|
|
{
|
|
get
|
|
{
|
|
Color color;
|
|
this.INTERNAL_get_legacySpecular(out color);
|
|
return color;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_legacySpecular(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002714 RID: 10004
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_legacySpecular(out Color value);
|
|
|
|
// Token: 0x06002715 RID: 10005
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_legacySpecular(ref Color value);
|
|
|
|
// Token: 0x17000921 RID: 2337
|
|
// (get) Token: 0x06002716 RID: 10006
|
|
// (set) Token: 0x06002717 RID: 10007
|
|
public extern float legacyShininess
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000922 RID: 2338
|
|
// (get) Token: 0x06002718 RID: 10008
|
|
// (set) Token: 0x06002719 RID: 10009
|
|
public extern bool drawHeightmap
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000923 RID: 2339
|
|
// (get) Token: 0x0600271A RID: 10010
|
|
// (set) Token: 0x0600271B RID: 10011
|
|
public extern bool drawTreesAndFoliage
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000924 RID: 2340
|
|
// (get) Token: 0x0600271C RID: 10012 RVA: 0x0002CB84 File Offset: 0x0002AD84
|
|
// (set) Token: 0x0600271D RID: 10013 RVA: 0x0002CBA4 File Offset: 0x0002ADA4
|
|
public Vector3 patchBoundsMultiplier
|
|
{
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
this.INTERNAL_get_patchBoundsMultiplier(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_patchBoundsMultiplier(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600271E RID: 10014
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_patchBoundsMultiplier(out Vector3 value);
|
|
|
|
// Token: 0x0600271F RID: 10015
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_patchBoundsMultiplier(ref Vector3 value);
|
|
|
|
// Token: 0x06002720 RID: 10016 RVA: 0x0002CBB0 File Offset: 0x0002ADB0
|
|
public float SampleHeight(Vector3 worldPosition)
|
|
{
|
|
return Terrain.INTERNAL_CALL_SampleHeight(this, ref worldPosition);
|
|
}
|
|
|
|
// Token: 0x06002721 RID: 10017
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern float INTERNAL_CALL_SampleHeight(Terrain self, ref Vector3 worldPosition);
|
|
|
|
// Token: 0x06002722 RID: 10018
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void ApplyDelayedHeightmapModification();
|
|
|
|
// Token: 0x06002723 RID: 10019 RVA: 0x0002CBD0 File Offset: 0x0002ADD0
|
|
public void AddTreeInstance(TreeInstance instance)
|
|
{
|
|
Terrain.INTERNAL_CALL_AddTreeInstance(this, ref instance);
|
|
}
|
|
|
|
// Token: 0x06002724 RID: 10020
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_AddTreeInstance(Terrain self, ref TreeInstance instance);
|
|
|
|
// Token: 0x06002725 RID: 10021
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void SetNeighbors(Terrain left, Terrain top, Terrain right, Terrain bottom);
|
|
|
|
// Token: 0x17000925 RID: 2341
|
|
// (get) Token: 0x06002726 RID: 10022
|
|
// (set) Token: 0x06002727 RID: 10023
|
|
public extern float treeLODBiasMultiplier
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000926 RID: 2342
|
|
// (get) Token: 0x06002728 RID: 10024
|
|
// (set) Token: 0x06002729 RID: 10025
|
|
public extern bool collectDetailPatches
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000927 RID: 2343
|
|
// (get) Token: 0x0600272A RID: 10026
|
|
// (set) Token: 0x0600272B RID: 10027
|
|
public extern TerrainRenderFlags editorRenderFlags
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x0600272C RID: 10028 RVA: 0x0002CBDC File Offset: 0x0002ADDC
|
|
public Vector3 GetPosition()
|
|
{
|
|
Vector3 vector;
|
|
Terrain.INTERNAL_CALL_GetPosition(this, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x0600272D RID: 10029
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_GetPosition(Terrain self, out Vector3 value);
|
|
|
|
// Token: 0x0600272E RID: 10030
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void Flush();
|
|
|
|
// Token: 0x0600272F RID: 10031 RVA: 0x0002CBFC File Offset: 0x0002ADFC
|
|
internal void RemoveTrees(Vector2 position, float radius, int prototypeIndex)
|
|
{
|
|
Terrain.INTERNAL_CALL_RemoveTrees(this, ref position, radius, prototypeIndex);
|
|
}
|
|
|
|
// Token: 0x06002730 RID: 10032
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_RemoveTrees(Terrain self, ref Vector2 position, float radius, int prototypeIndex);
|
|
|
|
// Token: 0x06002731 RID: 10033
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void SetSplatMaterialPropertyBlock(MaterialPropertyBlock properties);
|
|
|
|
// Token: 0x06002732 RID: 10034 RVA: 0x0002CC0C File Offset: 0x0002AE0C
|
|
public void GetSplatMaterialPropertyBlock(MaterialPropertyBlock dest)
|
|
{
|
|
if (dest == null)
|
|
{
|
|
throw new ArgumentNullException("dest");
|
|
}
|
|
this.Internal_GetSplatMaterialPropertyBlock(dest);
|
|
}
|
|
|
|
// Token: 0x06002733 RID: 10035
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void Internal_GetSplatMaterialPropertyBlock(MaterialPropertyBlock dest);
|
|
|
|
// Token: 0x17000928 RID: 2344
|
|
// (get) Token: 0x06002734 RID: 10036
|
|
public static extern Terrain activeTerrain
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x17000929 RID: 2345
|
|
// (get) Token: 0x06002735 RID: 10037
|
|
public static extern Terrain[] activeTerrains
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x06002736 RID: 10038
|
|
[UsedByNativeCode]
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public static extern GameObject CreateTerrainGameObject(TerrainData assignTerrain);
|
|
|
|
// Token: 0x02000235 RID: 565
|
|
public enum MaterialType
|
|
{
|
|
// Token: 0x04000692 RID: 1682
|
|
BuiltInStandard,
|
|
// Token: 0x04000693 RID: 1683
|
|
BuiltInLegacyDiffuse,
|
|
// Token: 0x04000694 RID: 1684
|
|
BuiltInLegacySpecular,
|
|
// Token: 0x04000695 RID: 1685
|
|
Custom
|
|
}
|
|
}
|
|
}
|