Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feature Request Please add this production-friendly InternalsVisibleTo line to VFX Graph's PackageInfo

Discussion in 'Visual Effect Graph' started by XRA, Dec 26, 2020.

  1. XRA

    XRA

    Joined:
    Aug 26, 2010
    Posts:
    265
    in Editor\PackageInfo.cs
    [assembly: InternalsVisibleTo("Unity.VisualEffectGraph.Editor.Extensions")]

    in Runtime\PackageInfo.cs
    [assembly: InternalsVisibleTo("Unity.VisualEffectGraph.Runtime.Extensions")]

    this way we can keep VFX Graph as a package (Easier updates) and by creating our own assembly using either of those preset names we can access VFX Graph's internals to make custom nodes and extensions as needed.
    It's how HDRP does it, you guys have HDRP's assembly in there specifically for that reason (which can be used in this manner if a project is not using HDRP)


    If anyone knows of a way to force the compiler to use IgnoresAccessChecksToAttribute for bypassing this please let me know.
     
  2. andybak

    andybak

    Joined:
    Jan 14, 2017
    Posts:
    569