Megosztás a következőn keresztül:


SimpleSprite Class

Definition

Very simple class to rotate sprites to face the camera.

public class SimpleSprite : UnityEngine.MonoBehaviour
type SimpleSprite = class
    inherit MonoBehaviour
Public Class SimpleSprite
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
SimpleSprite

Constructors

SimpleSprite()

Properties

Swivel

Swivel means rotate about Y-axis, set to false to face directly at target.

Target

Object to face towards. Defaults to camera at time Start is called.

Applies to