Class Accessory
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Accessory
Assembly: Dew.Core.dll
Syntax
[DewResourceLink(ResourceLinkBy.Name)]
public class Accessory : MonoBehaviour
Fields
category
Declaration
Field Value
customOffsets
Declaration
public List<Accessory.AttachOffset> customOffsets
Field Value
generatedFromServer
Declaration
public bool generatedFromServer
Field Value
previewCustomCenter
Declaration
[LabelText("Custom Center")]
public Transform previewCustomCenter
Field Value
| Type |
Description |
| UnityEngine.Transform |
|
previewImage
Declaration
[Space(30)]
[PreviewField(60)]
[LabelText("Thumbnail")]
public Sprite previewImage
Field Value
| Type |
Description |
| UnityEngine.Sprite |
|
previewOffset
Declaration
[LabelText("Normalized Offset")]
[ReadOnly]
public Vector2 previewOffset
Field Value
| Type |
Description |
| UnityEngine.Vector2 |
|
previewPadding
Declaration
[Range(-0.25, 0.25)]
[LabelText("Padding")]
public float previewPadding
Field Value
type
Declaration
Field Value
Methods
Declaration
public void Setup(Transform target, string entityOrSkinName)
Parameters
| Type |
Name |
Description |
| UnityEngine.Transform |
target |
|
| string |
entityOrSkinName |
|
Extension Methods