Unity.XRLineRenderer.api 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. // This file is generated. Do not modify by hand.
  2. // XML documentation file not found. To check if public methods have XML comments,
  3. // make sure the XML doc file is present and located next to the scraped dll
  4. namespace Unity.XRTools.Rendering
  5. {
  6. [UnityEngine.DisallowMultipleComponent] [UnityEngine.ExecuteInEditMode] [UnityEngine.RequireComponent(typeof(UnityEngine.MeshFilter))] [UnityEngine.RequireComponent(typeof(UnityEngine.MeshRenderer))] public abstract class MeshChainRenderer : UnityEngine.MonoBehaviour
  7. {
  8. [UnityEngine.SerializeField] [UnityEngine.Tooltip(@"The gradient describing color along the line.")] protected UnityEngine.Gradient m_Color;
  9. [UnityEngine.SerializeField] [UnityEngine.Tooltip(@"Materials to use when rendering.")] protected UnityEngine.Material[] m_Materials;
  10. protected bool m_MeshNeedsRefreshing;
  11. [UnityEngine.HideInInspector] [UnityEngine.SerializeField] protected UnityEngine.MeshRenderer m_MeshRenderer;
  12. protected float m_StepSize;
  13. [UnityEngine.SerializeField] [UnityEngine.Tooltip(@"The multiplier applied to the curve, describing the width (in world space) along the line.")] protected float m_Width;
  14. [UnityEngine.SerializeField] [UnityEngine.Tooltip(@"The curve describing the width of the line at various points along its length.")] protected UnityEngine.AnimationCurve m_WidthCurve;
  15. protected Unity.XRTools.Rendering.XRMeshChain m_XRMeshData;
  16. public UnityEngine.Color colorEnd { get; set; }
  17. public UnityEngine.Gradient colorGradient { get; set; }
  18. public UnityEngine.Color colorStart { get; set; }
  19. public virtual UnityEngine.Material material { get; set; }
  20. public virtual UnityEngine.Material[] materials { get; set; }
  21. public virtual UnityEngine.Material sharedMaterial { get; set; }
  22. public virtual UnityEngine.Material[] SharedMaterials { get; set; }
  23. public UnityEngine.AnimationCurve widthCurve { get; set; }
  24. public float widthEnd { get; set; }
  25. public float widthMultiplier { get; set; }
  26. public float widthStart { get; set; }
  27. protected MeshChainRenderer() {}
  28. protected virtual void Awake();
  29. protected virtual void Initialize(bool generate = True);
  30. protected virtual void LateUpdate();
  31. protected virtual bool NeedsReinitialize();
  32. protected virtual void OnDisable();
  33. protected virtual void OnEnable();
  34. public static UnityEngine.Renderer op_Implicit(Unity.XRTools.Rendering.MeshChainRenderer meshChainRenderer);
  35. public void RefreshMesh();
  36. public void SetTotalColor(UnityEngine.Color newColor);
  37. public void SetTotalWidth(float newWidth);
  38. protected virtual void UpdateColors();
  39. protected virtual void UpdateWidth();
  40. }
  41. [UnityEngine.ExecuteInEditMode] [UnityEngine.RequireComponent(typeof(UnityEngine.MeshFilter))] [UnityEngine.RequireComponent(typeof(UnityEngine.MeshRenderer))] public class XRLineRenderer : Unity.XRTools.Rendering.MeshChainRenderer
  42. {
  43. public bool loop { get; set; }
  44. public virtual UnityEngine.Material material { get; set; }
  45. public virtual UnityEngine.Material[] materials { get; set; }
  46. public virtual UnityEngine.Material sharedMaterial { get; set; }
  47. public virtual UnityEngine.Material[] SharedMaterials { get; set; }
  48. public bool useWorldSpace { get; set; }
  49. public XRLineRenderer() {}
  50. public UnityEngine.Vector3 GetPosition(int index);
  51. public int GetPositions(UnityEngine.Vector3[] positions);
  52. public int GetVertexCount();
  53. protected virtual void Initialize(bool setMesh = True);
  54. protected virtual bool NeedsReinitialize();
  55. public void SetPosition(int index, UnityEngine.Vector3 position);
  56. public void SetPositions(UnityEngine.Vector3[] newPositions, bool knownSizeChange = False);
  57. public void SetVertexCount(int count);
  58. protected virtual void UpdateColors();
  59. protected virtual void UpdateWidth();
  60. }
  61. public class XRMeshChain
  62. {
  63. public bool centerAtRoot { get; set; }
  64. public int reservedElements { get; }
  65. public bool worldSpaceData { get; set; }
  66. public XRMeshChain() {}
  67. public void GenerateMesh(UnityEngine.GameObject owner, bool dynamic, int totalElements, bool setMesh = True);
  68. public void RefreshMesh();
  69. public void SetElementColor(int elementIndex, ref UnityEngine.Color color);
  70. public void SetElementColor(int elementIndex, ref UnityEngine.Color startColor, ref UnityEngine.Color endColor);
  71. public void SetElementColor32(int elementIndex, ref UnityEngine.Color32 color);
  72. public void SetElementColor32(int elementIndex, ref UnityEngine.Color32 startColor, ref UnityEngine.Color32 endColor);
  73. public void SetElementPipe(int elementIndex, ref UnityEngine.Vector3 startPoint, ref UnityEngine.Vector3 endPoint);
  74. public void SetElementPosition(int elementIndex, ref UnityEngine.Vector3 position);
  75. public void SetElementSize(int elementIndex, float sizeModification);
  76. public void SetElementSize(int elementIndex, float startSize, float endSize);
  77. public void SetMeshDataDirty(Unity.XRTools.Rendering.XRMeshChain.MeshRefreshFlag dataThatNeedsUpdate);
  78. [System.Flags] public enum MeshRefreshFlag
  79. {
  80. public const Unity.XRTools.Rendering.XRMeshChain.MeshRefreshFlag All = 7;
  81. public const Unity.XRTools.Rendering.XRMeshChain.MeshRefreshFlag Colors = 2;
  82. public const Unity.XRTools.Rendering.XRMeshChain.MeshRefreshFlag None = 0;
  83. public const Unity.XRTools.Rendering.XRMeshChain.MeshRefreshFlag Positions = 1;
  84. public const Unity.XRTools.Rendering.XRMeshChain.MeshRefreshFlag Sizes = 4;
  85. public int value__;
  86. }
  87. }
  88. [UnityEngine.ExecuteInEditMode] [UnityEngine.RequireComponent(typeof(UnityEngine.MeshFilter))] [UnityEngine.RequireComponent(typeof(UnityEngine.MeshRenderer))] public class XRTrailRenderer : Unity.XRTools.Rendering.MeshChainRenderer
  89. {
  90. public bool autodestruct { get; set; }
  91. public float minVertexDistance { get; set; }
  92. public int positionCount { get; }
  93. public bool smoothInterpolation { get; set; }
  94. public float time { get; set; }
  95. public XRTrailRenderer() {}
  96. public void Clear();
  97. public void EditorCheckForUpdate();
  98. protected virtual void Initialize(bool setMesh = True);
  99. protected virtual void LateUpdate();
  100. protected virtual bool NeedsReinitialize();
  101. protected virtual void OnEnable();
  102. }
  103. }