コード例 #1
0
    private void Placeholder_OnMouseEnterEventHandler(Placeholder placeholder)
    {
        placeholder.DeactivatePreview();

        GameObject placeHolderOverride = placeholder.getOverridePreviewItem();

        m_activePreviewItem = placeHolderOverride ? placeHolderOverride : m_PreviewItemInstance;

        m_activePreviewItem.transform.position = placeholder.transform.position;
        m_activePreviewItem.transform.rotation = placeholder.transform.rotation;
        m_activePreviewItem.SetActive(true);
    }