コード例 #1
0
        protected virtual void Start()
        {
            textureAssets          = LookupAssetCache <TextureAssetCache>();
            meshAssets             = LookupAssetCache <MeshAssetCache>();
            materialPropertyAssets = LookupAssetCache <MaterialPropertyAssetCache>();

            if (textureAssets != null)
            {
                textureSerializers.Add(textureAssets.GetID(), textureAssets);
            }
        }
コード例 #2
0
        protected override void Awake()
        {
            base.Awake();

            textureAssets          = LookupAssetCache <TextureAssetCache>();
            meshAssets             = LookupAssetCache <MeshAssetCache>();
            materialPropertyAssets = LookupAssetCache <MaterialPropertyAssetCache>();

            if (textureAssets != null)
            {
                textureSerializers.Add(textureAssets.GetID(), textureAssets);
            }
        }