コード例 #1
0
    public void Awake()
    {
        MeshFilter component = base.GetComponent <MeshFilter>();

        if (component == null)
        {
            Debug.LogError("MeshFilter not found!");
            return;
        }
        this.render          = base.GetComponent <Renderer>();
        component.sharedMesh = SheenBillboard.GetSharedQuad();
        SheenBillboardManager.Register(this);
    }
コード例 #2
0
    public void Awake()
    {
        MeshFilter component = base.GetComponent <MeshFilter>();

        if (component == null)
        {
            Debug.LogError("MeshFilter not found!");
            return;
        }
        this.render          = base.GetComponent <Renderer>();
        component.sharedMesh = SheenBillboard.GetSharedQuad();
        SheenBillboardManager.Register(this);
        if (this.render != null)
        {
            this._vrIconCache = (this.render.sharedMaterial.mainTexture as Texture2D);
        }
    }