Class DotsRuntimeCSharpProgram | DOTS Runtime | 0.31.0-preview.24
docs.unity3d.com
    Show / Hide Table of Contents

    Class DotsRuntimeCSharpProgram

    DotsRuntimeCSharpProgram is a csharp program that targets dots-runtime. It follows a particular file structure. It always has a folder that folder can have *.cs files, which will be part of the csharp program. The folder can also have a .cpp~ and .js~ folder. If any of those are present, DotsRuntimeCSharpProgram will build a NativeProgram with those .cpp files and .js libraries side by side. The common usecase for this is for the c# code to [DllImport] pinvoke into the c++ code.

    A DotsRuntimeCSharpProgram does not know about asmdefs (e.g. Unity.LowLevel)

    Inheritance
    Object
    DotsRuntimeCSharpProgram
    AsmDefCSharpProgram
    Namespace: Global Namespace
    Syntax
    public class DotsRuntimeCSharpProgram : CSharpProgram

    Constructors

    DotsRuntimeCSharpProgram(NPath, IEnumerable<NPath>, String, Boolean, Boolean)

    Declaration
    public DotsRuntimeCSharpProgram(NPath mainSourcePath, IEnumerable<NPath> extraSourcePaths = null, string name = null, bool isExe = false, bool deferConstruction = false)
    Parameters
    Type Name Description
    NPath mainSourcePath
    IEnumerable<NPath> extraSourcePaths
    String name
    Boolean isExe
    Boolean deferConstruction

    Properties

    ExcludePlatforms

    Declaration
    public Platform[] ExcludePlatforms { get; set; }
    Property Value
    Type Description
    Platform[]

    ExtraSourcePaths

    Declaration
    public List<NPath> ExtraSourcePaths { get; }
    Property Value
    Type Description
    List<NPath>

    IncludePlatforms

    Declaration
    public Platform[] IncludePlatforms { get; set; }
    Property Value
    Type Description
    Platform[]

    MainSourcePath

    Declaration
    public NPath MainSourcePath { get; }
    Property Value
    Type Description
    NPath

    NativeProgram

    Declaration
    public NativeProgram NativeProgram { get; set; }
    Property Value
    Type Description
    NativeProgram

    Methods

    Construct(String, Boolean)

    Declaration
    protected void Construct(string name, bool isExe)
    Parameters
    Type Name Description
    String name
    Boolean isExe

    DeterminePathForProjectFile()

    Declaration
    protected virtual NPath DeterminePathForProjectFile()
    Returns
    Type Description
    NPath

    DoesPackageSourceIndicateUserHasControlOverSource(String)

    Declaration
    public static bool DoesPackageSourceIndicateUserHasControlOverSource(string packageSource)
    Parameters
    Type Name Description
    String packageSource
    Returns
    Type Description
    Boolean

    GetTargetFramework(CSharpProgramConfiguration, DotsRuntimeCSharpProgram)

    Declaration
    protected virtual TargetFramework GetTargetFramework(CSharpProgramConfiguration config, DotsRuntimeCSharpProgram program)
    Parameters
    Type Name Description
    CSharpProgramConfiguration config
    DotsRuntimeCSharpProgram program
    Returns
    Type Description
    TargetFramework

    IsSupportedFor(CSharpProgramConfiguration)

    Declaration
    public virtual bool IsSupportedFor(CSharpProgramConfiguration config)
    Parameters
    Type Name Description
    CSharpProgramConfiguration config
    Returns
    Type Description
    Boolean

    SetupDotsRuntimeNativeProgram(String, NativeProgram)

    Declaration
    public static void SetupDotsRuntimeNativeProgram(string libname, NativeProgram np)
    Parameters
    Type Name Description
    String libname
    NativeProgram np

    SetupNativeProgram(CSharpProgramConfiguration, DotNetAssembly)

    Declaration
    protected virtual DotNetAssembly SetupNativeProgram(CSharpProgramConfiguration config, DotNetAssembly result)
    Parameters
    Type Name Description
    CSharpProgramConfiguration config
    DotNetAssembly result
    Returns
    Type Description
    DotNetAssembly

    SetupSpecificConfiguration(CSharpProgramConfiguration)

    Declaration
    public override DotNetAssembly SetupSpecificConfiguration(CSharpProgramConfiguration config)
    Parameters
    Type Name Description
    CSharpProgramConfiguration config
    Returns
    Type Description
    DotNetAssembly
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023