Skip to content
Snippets Groups Projects
Select Git revision
  • 9542f87e721285044ea0faaa45c5965facaf1afd
  • master default protected
  • gitkeep
  • dev protected
  • Sprint/2022-01
  • Sprint/2021-15
  • Product/1573-ReadOnlyResources
  • Topic/1594-SetReadOnlyResources
  • Sprint/2021-09
  • Product/1442-projectInviteMngmnt
  • Topic/1529-HandleExternalUserInvitation
  • Topic/1528-projectInviteAPIcon
  • Sprint/2021-07
  • Product/1440-largerFiles
  • Topic/1451-uploadUrl
  • Topic/1452-largerFiles
  • Sprint/2021-06
  • Product/917-maintenanceFunctionality
  • Topic/1297-maintenanceBanner
  • Sprint/2021-04
  • Product/789-userContactEmail
  • v1.31.0
  • v1.30.0
  • v1.29.0
  • v1.28.0
  • v1.27.0
  • v1.26.0
  • v1.25.0
  • v1.24.2
  • v1.24.1
  • v1.24.0
  • v1.23.1
  • v1.23.0
  • v1.22.0
  • v1.21.0
  • v1.20.0
  • v1.19.0
  • v1.18.1
  • v1.18.0
  • v1.17.1
  • v1.17.0
41 results

contactchange-api.ts

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    VAUDirectivity.cs 775 B
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    
    public class VAUDirectivity : MonoBehaviour {
    
        protected int _ID = -1; // Stores the internal id that is assigned by VA
        [Tooltip("Absolute or relative path (relative to Assets folder), also use AddSearchPath for special folders.")]
        public string FilePath = ""; 
        public string Name = ""; // Versatile name for this directivity
    
        public int ID
        {
            get
            {
                return _ID;
            }
        }
        
        void Start ()
        {
            if (FilePath.Length > 0)
                _ID = VAUAdapter.VA.LoadDirectivity(FilePath, Name);
    	}
    
        private void OnDestroy()
        {
            if (_ID != -1)
                VAUAdapter.VA.FreeDirectivity(_ID);
            _ID = -1;
        }
    }