forked from bbepis/XUnity.AutoTranslator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpriteRenderer.cs
More file actions
108 lines (91 loc) · 2.03 KB
/
SpriteRenderer.cs
File metadata and controls
108 lines (91 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using UnityEngine.Rendering;
using UnityEngine.SceneManagement;
namespace UnityEngine
{
public sealed class SpriteRenderer : Renderer
{
public Sprite sprite
{
get
{
return GetSprite_INTERNAL();
}
set
{
SetSprite_INTERNAL( value );
}
}
public SpriteDrawMode drawMode
{
get;
set;
}
internal bool shouldSupportTiling
{
get;
}
public Vector2 size
{
get
{
INTERNAL_get_size( out Vector2 value );
return value;
}
set
{
INTERNAL_set_size( ref value );
}
}
public float adaptiveModeThreshold
{
get;
set;
}
public SpriteTileMode tileMode
{
get;
set;
}
public Color color
{
get
{
INTERNAL_get_color( out Color value );
return value;
}
set
{
INTERNAL_set_color( ref value );
}
}
public bool flipX
{
get;
set;
}
public bool flipY
{
get;
set;
}
private extern void INTERNAL_get_size( out Vector2 value );
private extern void INTERNAL_set_size( ref Vector2 value );
private extern Sprite GetSprite_INTERNAL();
private extern void SetSprite_INTERNAL( Sprite sprite );
private extern void INTERNAL_get_color( out Color value );
private extern void INTERNAL_set_color( ref Color value );
internal Bounds GetSpriteBounds()
{
INTERNAL_CALL_GetSpriteBounds( this, out Bounds value );
return value;
}
private static extern void INTERNAL_CALL_GetSpriteBounds( SpriteRenderer self, out Bounds value );
}
}