|
2 | 2 | from __future__ import annotations
|
3 | 3 |
|
4 | 4 | from abc import ABC
|
5 |
| -from typing import List, Optional, Tuple, TypeVar, Union, TYPE_CHECKING |
| 5 | +from typing import List, Optional, Tuple, TypeVar, Union |
6 | 6 |
|
7 | 7 | from attrs import define as attrs_define
|
8 | 8 |
|
@@ -2041,10 +2041,6 @@ class Pipeline(Component):
|
2041 | 2041 | class Renderer(Component):
|
2042 | 2042 | m_GameObject: PPtr[GameObject]
|
2043 | 2043 |
|
2044 |
| - if TYPE_CHECKING: |
2045 |
| - from .legacy_patch.Renderer import export as _export |
2046 |
| - export = _export |
2047 |
| - |
2048 | 2044 |
|
2049 | 2045 | @unitypy_define
|
2050 | 2046 | class BillboardRenderer(Renderer):
|
@@ -2748,32 +2744,6 @@ class GameObject(EditorExtension):
|
2748 | 2744 | m_Name: str
|
2749 | 2745 | m_Tag: int
|
2750 | 2746 |
|
2751 |
| - if TYPE_CHECKING: |
2752 |
| - from .legacy_patch.GameObject import ( |
2753 |
| - _GameObject_Components, _GameObject_GetComponent |
2754 |
| - ) |
2755 |
| - from ..enums import ClassIDType |
2756 |
| - |
2757 |
| - m_Components = property(_GameObject_Components) |
2758 |
| - m_Animator = property( |
2759 |
| - lambda self: _GameObject_GetComponent(self, ClassIDType.Animator) |
2760 |
| - ) |
2761 |
| - m_Animation = property( |
2762 |
| - lambda self: _GameObject_GetComponent(self, ClassIDType.Animation) |
2763 |
| - ) |
2764 |
| - m_Transform = property( |
2765 |
| - lambda self: _GameObject_GetComponent(self, ClassIDType.Transform) |
2766 |
| - ) |
2767 |
| - m_MeshRenderer = property( |
2768 |
| - lambda self: _GameObject_GetComponent(self, ClassIDType.MeshRenderer) |
2769 |
| - ) |
2770 |
| - m_SkinnedMeshRenderer = property( |
2771 |
| - lambda self: _GameObject_GetComponent(self, ClassIDType.SkinnedMeshRenderer) |
2772 |
| - ) |
2773 |
| - m_MeshFilter = property( |
2774 |
| - lambda self: _GameObject_GetComponent(self, ClassIDType.MeshFilter) |
2775 |
| - ) |
2776 |
| - |
2777 | 2747 |
|
2778 | 2748 | @unitypy_define
|
2779 | 2749 | class NamedObject(EditorExtension, ABC):
|
@@ -4084,11 +4054,6 @@ class AudioClip(SampleClip):
|
4084 | 4054 | m_Type: Optional[int] = None
|
4085 | 4055 | m_UseHardware: Optional[bool] = None
|
4086 | 4056 |
|
4087 |
| - if TYPE_CHECKING: |
4088 |
| - from .legacy_patch.AudioClip import _AudioClip_extension, _AudioClip_samples |
4089 |
| - extension = property(_AudioClip_extension) |
4090 |
| - samples = property(_AudioClip_samples) |
4091 |
| - |
4092 | 4057 |
|
4093 | 4058 | @unitypy_define
|
4094 | 4059 | class Avatar(NamedObject):
|
@@ -4486,10 +4451,6 @@ class Mesh(NamedObject):
|
4486 | 4451 | m_VertexData: Optional[VertexData] = None
|
4487 | 4452 | m_Vertices: Optional[List[Vector3f]] = None
|
4488 | 4453 |
|
4489 |
| - if TYPE_CHECKING: |
4490 |
| - from .legacy_patch.Mesh import _Mesh_export |
4491 |
| - export = _Mesh_export |
4492 |
| - |
4493 | 4454 |
|
4494 | 4455 | @unitypy_define
|
4495 | 4456 | class Motion(NamedObject, ABC):
|
@@ -4696,10 +4657,6 @@ class Shader(NamedObject):
|
4696 | 4657 | platforms: Optional[List[int]] = None
|
4697 | 4658 | stageCounts: Optional[List[int]] = None
|
4698 | 4659 |
|
4699 |
| - if TYPE_CHECKING: |
4700 |
| - from .legacy_patch.Shader import _Shader_export |
4701 |
| - export = _Shader_export |
4702 |
| - |
4703 | 4660 |
|
4704 | 4661 | @unitypy_define
|
4705 | 4662 | class ShaderVariantCollection(NamedObject):
|
@@ -4734,10 +4691,6 @@ class Sprite(NamedObject):
|
4734 | 4691 | m_ScriptableObjects: Optional[List[PPtr[MonoBehaviour]]] = None
|
4735 | 4692 | m_SpriteAtlas: Optional[PPtr[SpriteAtlas]] = None
|
4736 | 4693 |
|
4737 |
| - if TYPE_CHECKING: |
4738 |
| - from .legacy_patch.Sprite import _Sprite_image |
4739 |
| - image = property(_Sprite_image) |
4740 |
| - |
4741 | 4694 |
|
4742 | 4695 | @unitypy_define
|
4743 | 4696 | class SpriteAtlas(NamedObject):
|
@@ -5035,14 +4988,6 @@ class Texture2D(Texture):
|
5035 | 4988 | m_StreamingMipmaps: Optional[bool] = None
|
5036 | 4989 | m_StreamingMipmapsPriority: Optional[int] = None
|
5037 | 4990 |
|
5038 |
| - if TYPE_CHECKING: |
5039 |
| - from .legacy_patch.Texture2D import ( |
5040 |
| - _Texture2d_get_image, _Texture2D_get_image_data, _Texture2d_set_image |
5041 |
| - ) |
5042 |
| - image = property(_Texture2d_get_image, _Texture2d_set_image) |
5043 |
| - set_image = _Texture2d_set_image |
5044 |
| - get_image_data = _Texture2D_get_image_data |
5045 |
| - |
5046 | 4991 |
|
5047 | 4992 | @unitypy_define
|
5048 | 4993 | class Cubemap(Texture2D):
|
@@ -5098,10 +5043,6 @@ class Texture2DArray(Texture):
|
5098 | 5043 | m_StreamData: Optional[StreamingInfo] = None
|
5099 | 5044 | m_UsageMode: Optional[int] = None
|
5100 | 5045 |
|
5101 |
| - if TYPE_CHECKING: |
5102 |
| - from legacy_patch.Texture2DArray import _Texture2DArray_get_images |
5103 |
| - images = property(_Texture2DArray_get_images) |
5104 |
| - |
5105 | 5046 |
|
5106 | 5047 | @unitypy_define
|
5107 | 5048 | class Texture3D(Texture):
|
|
0 commit comments